Between the driver and the application through the shared memory communication, namely RING0 and Ring3 shared memory, sometimes is an obvious demand, in addition, the driver in many cases also need to actively notify the application after a certain condition is satisfied to do the corresponding operation, this article makes some of my own learning experience record, for later reference.
Shared Memory
About the kernel and application layer shared memory, in fact, gave a OSR article and code, all the problems have been solved, I found on the Internet some of the translation of this article, but the bizarre is all these translations did not have the original link to add, the original sample is not given out, I had to continue to spend time searching the web for the original and original sample code.
Here is not prepared to write too much, in the OSR article has been very clear, this time is doing this, do a good job to take out the code to share with you.
Osr:a Common Topic explained-sharing Memory between Drivers and applications
http://www.osronline.com/article.cfm?article=39
There are a lot of translations for this article, and two layouts are good, title: share memory between the driver and the application.
Http://blog.csdn.net/lovesunshine2008/archive/2009/04/01/4041755.aspx
http://laokaddk.blog.51cto.com/368606/167228
Event Notification
Osr:sharing is caring-sharing Events between Kernel-user Mode
http://www.osronline.com/article.cfm?id=108
For convenience, the TXT version, the link and the two sample code of the two articles of OSR, I packed together into the CSDN download and needed to download it by myself.
http://download.csdn.net/source/2137398