|
PatchworkOS
966e257
A non-POSIX operating system.
|
#include <kernel/cpu/interrupt.h>#include <kernel/ipc/note.h>#include <kernel/cpu/cpu.h>#include <kernel/log/log.h>#include <kernel/log/panic.h>#include <kernel/mem/space.h>#include <kernel/sched/sched.h>#include <kernel/sched/thread.h>#include <kernel/sync/lock.h>#include <assert.h>#include <errno.h>#include <stdlib.h>#include <string.h>#include <sys/math.h>Go to the source code of this file.
Functions | |
| void | note_handler_init (note_handler_t *handler) |
| Initialize a note handler. | |
| void | note_queue_init (note_queue_t *queue) |
| Initialize a note queue. | |
| uint64_t | note_amount (note_queue_t *queue) |
| The amount of pending notes in a note queue, including special notes. | |
| uint64_t | note_send (note_queue_t *queue, const char *string) |
| Write a note to a note queue. | |
| bool | note_handle_pending (interrupt_frame_t *frame, cpu_t *self) |
| Handle pending notes for the current thread. | |
| SYSCALL_DEFINE (SYS_NOTIFY, uint64_t, note_func_t handler) | |
| SYSCALL_DEFINE (SYS_NOTED, void) | |
| SYSCALL_DEFINE | ( | SYS_NOTIFY | , |
| uint64_t | , | ||
| note_func_t | handler | ||
| ) |