Jan Hudec wrote:
On Thu, Dec 14, 2006 at 04:25:14PM -0800, Manisha Maheshwari wrote:I am writing a Char device driver. I need to implement the munmap file operation for this driver. Some how i couldn't find any infomation abt it in Linux device Driver book.There is no such file_operation as munmap as of linux 2.6.18. Isn't that the reason you can't find any info on it?Can anybody provide the driver_munmap() code. One way i know is - In User space file - call munmap(mmaped_address, size); Then switch to driver using - ioctl() and In driver code, the memory allocated can be freed. I dont think any specific driver_munmap() needed here as there is no file operation available. If any other method , plz let us know. Thanks in advance, Manisha-------------------------------------------------------------------------------- - Jan Hudec `Bulb' <bulb@xxxxxx> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/ |