Re: pthread in kernel modules?

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

 



* Kashif Shaikh (kshaikh@consensys.com) wrote:
> 
> Isn't it true that both kernel_thread and pthread_create call the clone
> system call? That's the heritage I believe they share...

historically yes, current 2.5 no.

> Of course, I've never really understood why kernel_thread() would call a
> system call from kernel space...

well, see the code in 2.5.  it has changed. ;-)

from the changelog:

'Do x86 "kernel_thread()" explicitly by hand, instead of using a system
call from kernel space.

This avoids one level of hidden code, and makes what happens
much more explicit (and speeds it up too, fwiw)'  

-chris
-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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