MMap Implementation [vma->vm_end - vma->vm_start][kernel 2.4.21]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi all!!

Another query.....

A standard mmap  implementation uses the following

vsize = vma->vm_end - vma->vm_start, which is the total virtual size.

I assume that this should be equal to the size requested by the application in its mmap system call.

But I get the value 1K greater than what is requested by the application...

Can anyone explain the behavior or am i doing something wrong?

I am working on kernel 2.4.21.

TIA
Regards
Ketan


-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux