I have the need for the /proc/<pid>/status file inside the linprocfs. So

I have added it to the linprocfs_misc.c

Well the only problem I am having is the VmRSS: field. How do I get the
rssize from inside the kernel  for a process ? from userland I can do:

struct kinfo_proc->kp_eproc . e_vm . vm_rssize ( like top )

but from inside the struct proc what do I use ? I have tried the struct
vmspace but it give me strange numbers (well, maybe not strange but are
they in pages ? bytes ? and why are they 0 sometimes ? ) I have looked
and explored all over the headers, but I am stuck.

Any help will be greatly appreciated !!!

thank you

nathan



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to