On Mon, 26 Jul 1999, John Lombardo wrote:
> Hi Vidar,
>
> Ok, please point me to the book or white paper or something
> that explains how to write a kernel thread. It's probably
> as simple as calling a function pointing to a function, but
> I don't know how to do it.
>
> Regs,
> John
The only documentation I've seen for it is the kernel sources... Take a
look at init/main.c in the kernel source tree. It's fairly simple. Apart
from that most of the info on writing device drivers etc. apply to kernel
threads as well, with regards to what you can and can't do. I'd suggest
looking at some of the simpler kernel threads to see how they work (for
instance bdflush, kpiod, kswapd etc.
Vidar Hokstad <[EMAIL PROTECTED]> | VH Consulting - Linux and Unix software
<URL:http://www.hokstad.com/> | development and concept design