Полезная информация

next up previous contents
Next: The VFS Up: The sleep-wakeup mechanism Previous: The sleep-wakeup mechanism

More advanced sleeping

If the sleep_on()/wake_up() mechanism in does not satisfy your device driver needs, you can code your own versions of sleep_on() and wake_up() that fit your needs. For an example of this, look at the serial device driver (.../kernel/chr_drv/serial.c) in function block_til_ready(), where quite a bit has to be done between the add_wait_queue() and the schedule().



Converted on:
Mon Apr 1 10:20:16 EST 1996