Subject: Re: calling sys_open
To: Ashish Gupta <gashish@cse.iitk.ac.in>
From: Simon Burge <simonb@netbsd.org>
List: tech-kern
Date: 05/15/2000 13:20:32
Ashish Gupta wrote:
> When calling sys_open,it calls NDINIT with UIO_USERSPACE
> as one of the arguments.But as i am calling from KERNEL space
> should i have to change some fields of VM sturcts to have illusion
> that call is made from USERSPACE and latter on restore the values.
As an example, you could look at the way sys_acct() opens the accounting
file in sys/kern/kern_acct.c.
Simon.