<div dir="ltr">Hi all,<div><br></div><div>I want process related information like rss.(we can get this by doing cat /proc/&lt;pid&gt;status) Is there a way to get this from within a kernel module? I checked out the sources on /proc filesystem. They all show how to create, read, write a new proc file. But I want to read from an existing proc file specifically /proc/&lt;pid&gt;/status</div>
<div><br></div><div>I could not find rss info of a process from its task struct in kernel version 3.10.</div><div><br></div><div>I tried to look inside kernel to know how and where are these values (rss and all) are calculated by kernel. But I could not track it.</div>
<div><br></div><div>Can anyone please point me to either resources or guide me to accomplish the task of reading information from /proc/files...</div><div><br></div><div>I looked up call_usermodehelper but did not find it useful for my need.</div>
<div><br></div><div>Thanks !</div></div>