This is the mail archive of the
mailing list for the Cygwin project.
Re: File operations on a Windows Driver (character device)
- From: Mark Geisert <mark at maxrnd dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 20 May 2015 01:19:27 +0000 (UTC)
- Subject: Re: File operations on a Windows Driver (character device)
- Authentication-results: sourceware.org; auth=none
- References: <CACs=mWDRGh9KZBT45=8yy4J6h62v0RNYxczV91qRhhb8LcfY4Q at mail dot gmail dot com> <5559FB9E dot 3040200 at cygwin dot com> <CACs=mWCO8ejvsufP3C_HFAiKDrcsanGZ+J_EuQQGOm+u30T_zg at mail dot gmail dot com> <loom dot 20150519T094146-560 at post dot gmane dot org> <CACs=mWBEe2CqkN=tizTMcCXLxvbkwNat8Uch_CTPSaDgFCUmYQ at mail dot gmail dot com>
Alessio Faina writes:
> Well.....I wrote and answered myself the question you pointed out that
> is residing on stackoverflow....
Oh, small world :)
> It was my first option I thought of to pass the pointer to the virtual
> address to the userland application but
> I've been asked to mantain the architecture using open(), ioctl(),
> mmap() etc.... so I don't know, it's a kind of
> jolly to be played in case I won't be able to use the posix
> architecture....but reading on forums/mailing lists...
> I think I will be forced to use the kind of implementation I've
> described in the SO question.
> It seems that no-one ever have got the need to do something like I'm
> trying to do.
> 2015-05-19 9:52 GMT+02:00 Mark Geisert <XXXX <at> XXXXXX.XXX>:
> > Does
> > help to answer your question? If it does, you'll still have to decide
> > whether to translate the Windows calls there into Cygwin calls or instead
> > just localize the Windows calls in one user-level module and leave
> > everything else to Cygwin.
Cygwin is entirely and intentionally in user space. Most of its users don't
even need programming access to Windows user space, let alone kernel space.
So yes, you're likely to be forging a new path.
If you get it working with toy Windows test programs, we *might* be able to
tell you how to convert it to Cygwin, if it's possible. But the actual
figuring it out for Windows is outside the scope of what Cygwin is intended
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple