To paraphrase a colleague of ours: "what problem are you trying to solve?".


-- Michael



From: Surya kumar(deleted) <community-noreply@qnx.com>
Sent: Friday, July 2, 2021 14:05
To: ostech-core_os
Subject: identify physical RAM memory address from structure _procfs_map_info(DCMD_PROC_PAGEDATA)
 
Hello All,

I have to find actual physical memory address used by process . I am using structure _procfs_map_info with DCMD_PROC_PAGEDATA call as shown below.
(http://www.qnx.com/developers/docs/7.1/index.html#com.qnx.doc.neutrino.cookbook/topic/s3_procfs_DCMD_PROC_MAPINFO.html)

typedef struct _procfs_map_info {
  uint64_t   vaddr;
  uint64_t   size;
  uint32_t   flags;
  dev_t      dev;
  off_t      offset;
  ino_t      ino;
} procfs_mapinfo;

i couldn't find much info about variables dev,offset and ino. Could you please help me understand this?

is it possible to determine physical RAM address with this structure(using vaddr, offset etc..)?

Thank you!

 



_______________________________________________

OSTech
http://community.qnx.com/sf/go/post121487
To cancel your subscription to this discussion, please e-mail ostech-core_os-unsubscribe@community.qnx.com