Re: Accessing user data from kernel

2000-01-20 Thread Arun Sharma
On Thu, Jan 20, 2000 at 10:04:16AM -0500, Zhihui Zhang wrote: > Point 2 seems to be saying that we would rather sacrifice some performance > to gain a cleaner interface (people are talking about eliminating kernel > copying for a long time). Consider the physical I/O on a raw device, where > we ma

Re: Accessing user data from kernel

2000-01-20 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Arun Sharma) writes: > 2. For cases where you've entered the kernel synchronously - through syscalls >for example, you need to check for the validity of data. You could >potentially skip the step and validate the data where it is used, rather >than doing it upfron

Re: Accessing user data from kernel

2000-01-20 Thread Zhihui Zhang
On Wed, 19 Jan 2000, Arun Sharma wrote: > In muc.lists.freebsd.hackers, you wrote: > > > > When the kernel wants to access any user data, it either copies them into > > the kernel or maps them into kernel address space. Can anyone tell me the > > reasons why this is done? When a process enter

Re: Accessing user data from kernel

2000-01-19 Thread Arun Sharma
In muc.lists.freebsd.hackers, you wrote: > > When the kernel wants to access any user data, it either copies them into > the kernel or maps them into kernel address space. Can anyone tell me the > reasons why this is done? When a process enters the kernel mode, the > page tables are not changed

Re: Accessing user data from kernel

2000-01-19 Thread Luoqi Chen
> When the kernel wants to access any user data, it either copies them into > the kernel or maps them into kernel address space. Can anyone tell me the > reasons why this is done? When a process enters the kernel mode, the > page tables are not changed. > > I have taken this for granted for a

Accessing user data from kernel

2000-01-19 Thread Zhihui Zhang
When the kernel wants to access any user data, it either copies them into the kernel or maps them into kernel address space. Can anyone tell me the reasons why this is done? When a process enters the kernel mode, the page tables are not changed. I have taken this for granted for a long time w