General
cancel
Showing results for 
Search instead for 
Did you mean: 

a question about system call pstat() in kernel

kaijile
Frequent Advisor

a question about system call pstat() in kernel

In kernel, where is the system call function pstat() get information to return to application layer?
1 REPLY
Laurent Menase
Honored Contributor

Re: a question about system call pstat() in kernel

it uses the user level 2nd parameter which is a pointer to a user space buffer of current process.

in the kernel, pstat() get a pointer to a kernel space address which points to a structure containing all the 4 parameters.
the 2nd param is the user space buffer address
passed by user space.