public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* File operations on a Windows Driver (character device)
@ 2015-05-18 12:34 Alessio Faina
  2015-05-18 15:30 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 12+ messages in thread
From: Alessio Faina @ 2015-05-18 12:34 UTC (permalink / raw)
  To: cygwin

Hello everyone,

I'm developing a port of a FreeBSD/Linux application that consists of
two parts: a kernel and a user land part.
The kernel part is build as a WDM driver and is compiled with VS2013
and WDK 8.1: the userspace is going to
be compiled under Cygwin for compatibility with user land programs
already written for other OSs.

My problem is that the user space program invokes Open(), ioctl(),
mmap/munmap(), select() and poll().

I've build a test Win32 app to open with CreateFile the DosDevice with
the "\\\\.\\uniioctl" name and everything goes fine,
but I've tried to do the same thing with Open(...) with a lot of
variants (\\DosDevice\\uniioctl, \dev\uniioctl....) but I'm
unable to open the character device. There is some way to do this?

For the second main problem, I need to do an mmap/munmap; I was
thinking to emulate this mechanism with an IOCTL
in the kernel module but doing so, I wouldn't be able to use the mmap
provided by Cygwin if I've understood how the
things are working; so I'm wondering how to cope with this problem;
there's some way to explicitly tell Cygwin where
to find the memory that needs to be allocated in userspace? How can I
do this in the kernel module?

Thanks everyone,

          -Alessio

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-05-28 10:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-18 12:34 File operations on a Windows Driver (character device) Alessio Faina
2015-05-18 15:30 ` Larry Hall (Cygwin)
2015-05-18 16:19   ` Alessio Faina
2015-05-19  8:52     ` Mark Geisert
2015-05-19 15:37       ` Alessio Faina
2015-05-20  5:18         ` Mark Geisert
2015-05-21 11:14           ` Alessio Faina
2015-05-21 18:20             ` Mark Geisert
2015-05-27 12:23     ` Corinna Vinschen
2015-05-27 15:59       ` Alessio Faina
2015-05-27 17:22         ` Eric Blake
2015-05-28 10:55         ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).