Hi all,
I am trying to understand a little bit about linux VMM [Writing a device driver for linux].
What is "unsigned long vm_pgoff;" ?
The comment in the mm.h says that /* Offset (within vm_file) in PAGE_SIZE units, *not* PAGE_CACHE_SIZE */
But that did not made it clear....tried to 'google' it but to no avail...
can anyone explain me the use of this variable?
It is generally used in the driver's mmap implementation as following
unsigned long off = vma->vm_pgoff << PAGE_SHIFT;
Thanks in advance
Regards Ketan
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/