MOS Source Code
|
#include "mos/mm/slab.h"
#include "mos/mm/slab_autoinit.h"
#include "mos/tasks/schedule.h"
#include <mos/lib/structures/list.h>
#include <mos/lib/sync/spinlock.h>
#include <mos/platform/platform.h>
#include <mos/syslog/printk.h>
#include <mos/tasks/task_types.h>
#include <mos/tasks/thread.h>
#include <mos/tasks/wait.h>
#include <mos_stdlib.h>
#include <mos_string.h>
Go to the source code of this file.
Functions | |
SLAB_AUTOINIT ("waitlist", waitlist_slab, waitlist_t) | |
SLAB_AUTOINIT ("waitlist_entry", waitlist_listentry_slab, waitable_list_entry_t) | |
void | waitlist_init (waitlist_t *list) |
bool | waitlist_append (waitlist_t *list) |
size_t | waitlist_wake (waitlist_t *list, size_t max_wakeups) |
void | waitlist_close (waitlist_t *list) |
void | waitlist_remove_me (waitlist_t *waitlist) |
Variables | |
slab_t * | waitlist_slab = NULL |
static slab_t * | waitlist_listentry_slab = NULL |
SLAB_AUTOINIT | ( | "waitlist" | , |
waitlist_slab | , | ||
waitlist_t | ) |
SLAB_AUTOINIT | ( | "waitlist_entry" | , |
waitlist_listentry_slab | , | ||
waitable_list_entry_t | ) |
void waitlist_init | ( | waitlist_t * | list | ) |
Definition at line 23 of file wait.c.
Referenced by console_register(), futex_wait(), ipc_connect_to_server(), ipc_server_close(), ipc_server_create(), pipe_create(), process_allocate(), process_do_fork(), and thread_allocate().
bool waitlist_append | ( | waitlist_t * | list | ) |
Definition at line 29 of file wait.c.
Referenced by ipc_connect_to_server(), ipc_server_accept(), and reschedule_for_waitlist().
size_t waitlist_wake | ( | waitlist_t * | list, |
size_t | max_wakeups ) |
Definition at line 45 of file wait.c.
Referenced by console_putc(), futex_wake(), ipc_connect_to_server(), pipe_close_one_end(), pipe_read(), pipe_write(), process_exit(), and thread_exit_locked().
void waitlist_close | ( | waitlist_t * | list | ) |
Definition at line 76 of file wait.c.
Referenced by ipc_server_close(), ipc_server_create(), and thread_exit_locked().
void waitlist_remove_me | ( | waitlist_t * | waitlist | ) |
Definition at line 86 of file wait.c.
Referenced by ipc_server_accept(), and process_wait_for_pid().
Definition at line 17 of file wait.c.
Referenced by ipc_connect_to_server().
Definition at line 20 of file wait.c.
Referenced by waitlist_append().