Re: sharing memory with user and kernel
- From: Maverick 1288 <Maverick1288@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 May 2008 00:21:00 -0700
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
- Follow-Ups:
- Re: sharing memory with user and kernel
- From: Maxim S. Shatskih
- Re: sharing memory with user and kernel
- References:
- Re: sharing memory with user and kernel
- From: Don Burn
- Re: sharing memory with user and kernel
- From: Gary G. Little
- Re: sharing memory with user and kernel
- Prev by Date: Re: Horizontal Scrolling
- Next by Date: Re: sharing memory with user and kernel
- Previous by thread: Re: sharing memory with user and kernel
- Next by thread: Re: sharing memory with user and kernel
- Index(es):
Relevant Pages
|