Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 12-17-2012, 02:25 AM   #1
LQ Newbie
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
Unhappy 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,

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/
b7fce000-b7fcf000 r--p 0002e000 03:00 9573 /lib/
b7fcf000-b7fd0000 rw-p 0002f000 03:00 9573 /lib/
b7fd0000-b7fd4000 rw-p b7fd0000 00:00 0
b7fd4000-b7fdd000 r-xp 00000000 03:00 9572 /lib/
b7fdd000-b7fde000 r--p 00008000 03:00 9572 /lib/
b7fde000-b7fdf000 rw-p 00009000 03:00 9572 /lib/
b7fe0000-b7fe1000 rw-p b7fe0000 00:00 0
b7fe1000-b7fe5000 r-xp 00000000 03:00 9581 /lib/
b7fe5000-b7fe6000 r--p 00003000 03:00 9581 /lib/
b7fe6000-b7fe7000 rw-p 00004000 03:00 9581 /lib/
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?????????????????
Old 12-17-2012, 02:27 AM   #2
LQ Newbie
Registered: Mar 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Any one please reply .I stucked up in this for past 1 week.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT -5. The time now is 05:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration