Subject: Re: question on device detachment
To: Ferry Sutanto <fsutanto@yahoo.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 10/22/2001 18:26:48
On Mon, Oct 22, 2001 at 09:21:17AM -0700, Ferry Sutanto wrote:
> Thank you for the help!!
> 
> I have created a kernel thread and I want to know how
> to invoke the thread. What is the API to invoke it ? 

read kthread(9)
Basically the thread will have to enter an infinite loop, calling tsleep()
when it has nothing to do. Callers will wake up the thread with wakeup().
An example is in sys/dev/scsipi/scsipi_base.c

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--