First page Back Continue Last page Overview Graphics
How to sleep (1)
Must declare a wait queue
A wait queue will be used to store the list of threads waiting for an event.
Static queue declaration
useful to declare as a global variable
DECLARE_WAIT_QUEUE_HEAD (module_queue);
Or dynamic queue declaration
useful to embed the wait queue inside another data structure