Getting Virtual Memory Data for a specific pro…

Getting Virtual Memory Data for a specific process. (Kernel Module):

Hi,

For a project, we are required to make a kernel module that will get the Virtual Memory data for a specific process. The process will be specified by the PID, I have no issues with that. It’s just the Virtual Memory bit, would we be using ‘struct task_struct *task’ or is there some other thing that can help me with this?

Thanks,

submitted by /u/iWishForMoreTea
[link] [comments] via Linux 101 stuff. Questions are encouraged, noobs are welcome!