MentOS
0.8.0
The Mentoring Operating System
|
wait functions. More...
Macros | |
#define | __DEBUG_HEADER__ "[WAIT ]" |
Change header. | |
#define | __DEBUG_LEVEL__ LOGLEVEL_NOTICE |
Set log level. | |
Functions | |
static void | __add_wait_queue (wait_queue_head_t *head, wait_queue_entry_t *wq) |
Adds the entry to the wait queue. More... | |
static void | __remove_wait_queue (wait_queue_head_t *head, wait_queue_entry_t *wq) |
Removes the entry from the wait queue. More... | |
wait_queue_entry_t * | wait_queue_entry_alloc (void) |
Allocates the memory for a wait_queue_entry. More... | |
void | wait_queue_entry_dealloc (wait_queue_entry_t *wait_queue_entry) |
Frees the memory of a wait_queue_entry. More... | |
void | init_waitqueue_entry (wait_queue_entry_t *wq, struct task_struct *task) |
Initialize the waiting queue entry. More... | |
void | add_wait_queue (wait_queue_head_t *head, wait_queue_entry_t *wq) |
Adds the element to the waiting queue. More... | |
void | remove_wait_queue (wait_queue_head_t *head, wait_queue_entry_t *wq) |
Removes the element from the waiting queue. More... | |
wait functions.
|
inlinestatic |
Adds the entry to the wait queue.
head | the wait queue. |
wq | the entry. |
|
inlinestatic |
Removes the entry from the wait queue.
head | the wait queue. |
wq | the entry. |
void add_wait_queue | ( | wait_queue_head_t * | head, |
wait_queue_entry_t * | wq | ||
) |
Adds the element to the waiting queue.
head | The head of the waiting queue. |
wq | The entry we insert inside the waiting queue. |
void init_waitqueue_entry | ( | wait_queue_entry_t * | wq, |
struct task_struct * | task | ||
) |
Initialize the waiting queue entry.
wq | The entry we initialize. |
task | The task associated with the entry. |
void remove_wait_queue | ( | wait_queue_head_t * | head, |
wait_queue_entry_t * | wq | ||
) |
Removes the element from the waiting queue.
head | The head of the waiting queue. |
wq | The entry we remove from the waiting queue. |
wait_queue_entry_t* wait_queue_entry_alloc | ( | void | ) |
Allocates the memory for a wait_queue_entry.
void wait_queue_entry_dealloc | ( | wait_queue_entry_t * | wait_queue_entry | ) |
Frees the memory of a wait_queue_entry.
wait_queue_entry | pointer to the wait_queue_entry. |