PC Review


Reply
Thread Tools Rate Thread

how application use Driver allocated memory space.

 
 
sulabh
Guest
Posts: n/a
 
      20th Aug 2007
Hello all,

i allocate memory in driver and pass the base address of this memory
into the application.
how the application map this memory in user space.

regards
suli

 
Reply With Quote
 
 
 
 
Don Burn
Guest
Posts: n/a
 
      20th Aug 2007
This is an incredibly bad idea. First unless you are extremely careful you
can open a major security hole. Second, you are looking at a ton of code
to handle detection of application exit, or else you are looking at a major
memory leak.

Instead have the application allocate the memory and pass it in via an
IOCTL. Note even then if you are sharing the memory between the
application and the driver, unless you are really good you are likely to
have a bigger overhead to synchronize these accesses than if you just used
regular calls. I have seen the shared data used correctly but 90% of the
time I found that I improved performance and reliability by pulling out
stuff like this.

--
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


"sulabh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello all,
>
> i allocate memory in driver and pass the base address of this memory
> into the application.
> how the application map this memory in user space.
>
> regards
> suli
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Space allocated to an enumeration ....DotNet4Ever.... Microsoft Dot NET Framework 3 14th May 2009 10:51 AM
Un-allocated drive space =?Utf-8?B?TWFyaw==?= Windows XP General 7 20th Mar 2004 05:43 AM
Re: how is space allocated? Ignaitus Microsoft Excel Misc 0 18th Jul 2003 12:49 AM
Re: how is space allocated? Ignatius Microsoft Excel Misc 0 18th Jul 2003 12:39 AM
Re: Disk space not de-allocated NuT CrAcKeR Microsoft Windows 2000 Hardware 0 1st Jul 2003 06:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:14 PM.