LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   vm_pgoff (http://www.linuxquestions.org/questions/linux-kernel-70/vm_pgoff-4175441738/)

balaganesh.v 12-17-2012 01:25 AM

vm_pgoff
 
Hi I know that the vm_pgoff field contains the offset for the mapped region in process's Virtual address space.But when i tried cat /proc/self/maps in the following terminal,
http://bellard.org/jslinux/

I got the following ,
08105000-08106000 rw-p 000bd000 03:00 5474 /bin/busybox
08106000-08107000 rw-p 08106000 00:00 0 [heap]
b7f9f000-b7fce000 r-xp 00000000 03:00 9573 /lib/libuClibc-0.9.31.so
b7fce000-b7fcf000 r--p 0002e000 03:00 9573 /lib/libuClibc-0.9.31.so
b7fcf000-b7fd0000 rw-p 0002f000 03:00 9573 /lib/libuClibc-0.9.31.so
b7fd0000-b7fd4000 rw-p b7fd0000 00:00 0
b7fd4000-b7fdd000 r-xp 00000000 03:00 9572 /lib/libm-0.9.31.so
b7fdd000-b7fde000 r--p 00008000 03:00 9572 /lib/libm-0.9.31.so
b7fde000-b7fdf000 rw-p 00009000 03:00 9572 /lib/libm-0.9.31.so
b7fe0000-b7fe1000 rw-p b7fe0000 00:00 0
b7fe1000-b7fe5000 r-xp 00000000 03:00 9581 /lib/ld-uClibc-0.9.31.so
b7fe5000-b7fe6000 r--p 00003000 03:00 9581 /lib/ld-uClibc-0.9.31.so
b7fe6000-b7fe7000 rw-p 00004000 03:00 9581 /lib/ld-uClibc-0.9.31.so
bfbcc000-bfbe2000 rw-p bfbcc000 00:00 0 [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
/ #

when I add the highlighted items (starting+offset) I only got B7FCD000 instead of B7FCE000.
Similarly adding

What is the problem with this?????????????????

balaganesh.v 12-17-2012 01:27 AM

Any one please reply .I stucked up in this for past 1 week.


All times are GMT -5. The time now is 08:40 AM.