Operating System - HP-UX
1752454 Members
6202 Online
108788 Solutions
New Discussion

Re: 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 1
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.