Re: sleeping kernel thread

From: Rik van Riel (riel@conectiva.com.br)
Date: Thu Jul 13 2000 - 18:10:24 EST


On Thu, 13 Jul 2000, Chen Chen wrote:

> does anyone know how to create a kernel thread, put it to sleep,
> and wake it up??

Have you considered cut'n'pasting the code from eg.
kswapd which already does all of this?

mm/vmscan.c::kswapd()

Rik

--
"What you're running that piece of shit Gnome?!?!"
       -- Miguel de Icaza, UKUUG 2000

http://www.conectiva.com/ http://www.surriel.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:18 EST