Re: sharing memory with user and kernel



Thanks Gary for the reply,

CAn you post me some links ? I've tried to search for this topic ("inverted
call back") but nothing showed up.

- Henrik

"Gary G. Little" wrote:

It's been covered many time in this group as well as the OSROnline forums.
Use an inverted call back is one means that is commonly used.

--
The personal opinion of
Gary G. Little


"Maverick 1288" <Maverick1288@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:50100D0C-5152-439A-AE8F-F682B48D6F07@xxxxxxxxxxxxxxxx
ok... so do you have any other idea of, how to solve my problem ?

"Don Burn" wrote:

Using shared memory between user and kernel is a horrible approach
period.
First it opens a ton of security holes, second it can be quite hard to
handle the problems of the user mode application going away or the driver
wanting to unload. Finally, you have the synchronization problems
between
the user and kernel mode, if nothing else sync can eat up as much time as
just passing the data directly. This is really a very bad idea.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply




"Maverick 1288" <Maverick 1288@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
news:639B2503-149A-4889-B4A1-5A52F1D96A2F@xxxxxxxxxxxxxxxx
Hello,

I developed an application in user mode that capture audio data and
stores
the data in shared memory using CreateFileMapping and MapViewOfFile.
This
memory is accessible via an API i've developed (standard DLL stuff).
I'm
now
working on a virtual mic driver (MSVAD pcemx example drom DDK) and my
intentions is to ovverride the CopyTo function and pump the data from
my
shared memory into the mic buffer. Is this a good approach ? and does
any
body have an example on how to map the shared memory into the kernel
space
?

- henrik






.



Relevant Pages

  • Re: sharing memory with user and kernel
    ... There is no need in going to kernel mode for virtual microphone driver, ... Maxim Shatskih, Windows DDK MVP ... I developed an application in user mode that capture audio data and stores ... the data in shared memory using CreateFileMapping and MapViewOfFile. ...
    (microsoft.public.development.device.drivers)
  • Re: sharing memory with user and kernel
    ... handle the problems of the user mode application going away or the driver ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... the data in shared memory using CreateFileMapping and MapViewOfFile. ... working on a virtual mic driver and my ...
    (microsoft.public.development.device.drivers)
  • Re: sharing memory with user and kernel
    ... Using shared memory between user and kernel is a horrible approach period. ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... I developed an application in user mode that capture audio data and stores ...
    (microsoft.public.development.device.drivers)
  • Re: SHaring buffer from kernel to applications-help!!!
    ... Sharing memory is a bad idea in most cases. ... Problems when you want to expand or contract the buffer area. ... I've worked on projects where we used shared memory (delivering streaming ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ...
    (microsoft.public.development.device.drivers)
  • Re: [PATCH 7/8] s390: new DCSS SHM device driver
    ... On Dinsdag 28 Dezember 2004 09:28, Heiko Carstens wrote: ... > Add support for shared memory using z/VM DCSS. ... I'd rather not see this driver merged at this point. ...
    (Linux-Kernel)