lkml.org 
[lkml]   [2000]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sleeping kernel thread
Hi,

> does anyone know how to create a kernel thread, put it to sleep, and wake it
> up??
>
Have a look at:
http://www.scs.ch/~frey/linux/kernelthreads.html

Creation and termination is described there, including
a code example.

Use wake_up_interruptible() from an external event to wake
it up (e.g. out of interrupt, out of ioctl, ...).

Best regards,

Martin Frey

--
Supercomputing Systems AG email: frey@scs.ch
Martin Frey www: http://www.scs.ch/~frey
Technoparkstrasse 1 phone: +41 (0)1 445 16 00
CH-8005 Zurich fax: +41 (0)1 445 16 10

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.029 / U:0.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site