Re: Access User address from kernel thread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 18, 2007 at 11:56:07PM -0500, Rik van Riel wrote:
> Karthik.G. wrote:
> 
> >The goal is to pass the system call parameters in the a predefined 
> >location in the user process .The kernel thread will have to  read and 
> >execute the particular system call . This will be faster than the  
> >normal system call mechanism 
> 
> No, it won't.
> 
> Normal system calls stay in the same process context and can be
> run without a context switch.  Your scheme requires a context
> switch and a (complex) lookup and pinning of user pages in a
> different process.  That is pretty much guaranteed to be slower.

And you still have to notify the kernel thread that the parameters are
ready to be parsed. One way is to have some kind of system call, but
that defeats the purpose.

Another way would be to have the kernel thread watch a variable that
says "all parameters are ready", but that would require the kernel
thread to watch every millisecond or so which will destroy latency.


Erik

-- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux