Date: Mon, 26 Jun 2000 11:14:53 -0500 From: Chris Costello <chris@calldei.com> To: Fox Anderson <andersonfox@mail.ru> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: struct proc Message-ID: <20000626111453.E20702@holly.calldei.com> In-Reply-To: <3957ABBD.6010407@mail.ru> References: <3957ABBD.6010407@mail.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <chris@calldei.com>
|It wasn't as easy to get programs right as we had thought. - Wilkes, 1949
`--------------------------------------------------------------------------
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000626111453.E20702>
