On Monday, June 26, 2000, Fox Anderson wrote:
> Hi all!
> 
> What is the difference between p and curproc in my syscall?
> 
> static int
> my_syscall(struct proc *p, my_syscallargs *uap) {
>               curproc->......
> }

   p is the process that made the syscall, curproc is the current
running process.  You should be using p for the process that
called my_syscall.

-- 
|Chris Costello <[EMAIL PROTECTED]>
|It wasn't as easy to get programs right as we had thought.  - Wilkes, 1949
`--------------------------------------------------------------------------


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

Reply via email to