unsigned int uint32_t
Definition fb.h:17
process control block.
Definition process.h:69
bool interruptible
Definition process.h:116
kernel locking rules:
Definition spinlock.h:67
a queue of blocked processes, linked through process_t::wait_next.
Definition wait_queue.h:35
struct process * head
Definition wait_queue.h:36
void wait_queue_block_locked(wait_queue_t *wq, spinlock_t *lock)
block on this queue while holding a spinlock, releasing the lock for as long as the process sleeps an...
Definition wait_queue.c:142
void wait_queue_wake_one(wait_queue_t *wq)
wake the process at the head of the queue, if any.
Definition wait_queue.c:179
void wait_queue_init(wait_queue_t *wq)
initialize a wait queue to empty.
Definition wait_queue.c:37
void wait_queue_block(wait_queue_t *wq)
block the current process on this queue and yield the CPU.
Definition wait_queue.c:117
void wait_queue_block_interruptible(wait_queue_t *wq)
like wait_queue_block, but a signal for the process also wakes it.
Definition wait_queue.c:122
void wait_queue_block_locked_interruptible(wait_queue_t *wq, spinlock_t *lock)
like wait_queue_block_locked, but a signal for the process also wakes it.
Definition wait_queue.c:147
bool wait_queue_interrupt(process_t *proc)
take a process out of the queue it sleeps on, if it sleeps interruptibly, and make it runnable (a sig...
Definition wait_queue.c:152
void wait_queue_sleep_locked(wait_queue_t *wq, bool interruptible)
sleep on a queue: the common part of the block functions, for code that builds its own (the timed que...
Definition wait_queue.c:42
void wait_queue_wait_word(wait_queue_t *wq, const volatile uint32_t *word, uint32_t seen)
sleep on a queue while a counter has the value the caller saw, until a wake or a signal.
Definition wait_queue.c:127
void wait_queue_wake_all(wait_queue_t *wq)
wake every process on the queue.
Definition wait_queue.c:211
void wait_queue_wake_all_locked(wait_queue_t *wq)
wait_queue_wake_all() for a caller that holds sched_lock.
Definition wait_queue.c:195