Sharing Memory between driver space and user space
Hi,
The sys V functions, shmget(), shmatt(), and shmdet() allow
memory to be shared between one or more applications in userspace. The memory may be efficiently accessed in each
user application by dereferencing pointers.
Will this work between driver code and userspace?
If not, is there another method whereby memory can be shared between a device driver, and user code using pointers?
I am writing a display driver, and want to share the pixel image between user code and the display driver.
The user code will simply update the pixel image by dereferencing a pointer, and the driver will be responsible for keeping the display up to date.
Thanks for any information,
Ian Davidson
|