Are there even threads in Linux drivers?

Doug Ledford dledford at redhat.com
Fri Dec 10 09:38:08 PST 1999


"Matthew M. DeLoera" wrote:
> 
> Actually, I may even have a complete misunderstanding...
> 
> Is clone() actually a way to spawn a thread in Linux, or is it a process
> call? Is there even a way to spawn kernel threads in Linux? I might as
> well ask...

If you need a kernel thread, then use the kernel_thread() kernel facility. 
clone() is specifically a syscall for user land applications and is not needed
in the kernel.  In general though, the linux kernel is not based upon, nor
necessarily friendly to explicitly thread based drivers.  You may find that
programming as such will garner lots of strange looks and not so friendly
suggestions from typical linux developers.  What you are talking about simply
is a different programming model than linux uses and is not recommended unless
you truly know what you are doing in the linux kernel space.

-- 
  Doug Ledford   <dledford at redhat.com>
   Opinions expressed are my own, but
      they should be everybody's.


To Unsubscribe: send mail to majordomo at FreeBSD.org
with "unsubscribe aic7xxx" in the body of the message




More information about the aic7xxx mailing list