Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Dec 1999 12:39:09 -0500
From:      Doug Ledford <dledford@redhat.com>
To:        "Matthew M. DeLoera" <codebear@earthlink.net>
Cc:        Linux AIC-7xxx Driver <aic7xxx@FreeBSD.ORG>
Subject:   Re: Are there even threads in Linux drivers?
Message-ID:  <38513ABD.6A88114A@redhat.com>
References:  <385122F1.14A45DDE@earthlink.net> <38512428.DF6DCA54@earthlink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
"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@redhat.com>
   Opinions expressed are my own, but
      they should be everybody's.


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38513ABD.6A88114A>