PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
note.c File Reference
#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>
Include dependency graph for note.c:

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)
 

Function Documentation

◆ SYSCALL_DEFINE() [1/2]

SYSCALL_DEFINE ( SYS_NOTIFY  ,
uint64_t  ,
note_func_t  handler 
)

Definition at line 147 of file note.c.

Here is the call graph for this function:

◆ SYSCALL_DEFINE() [2/2]

SYSCALL_DEFINE ( SYS_NOTED  ,
void   
)

Definition at line 164 of file note.c.

Here is the call graph for this function: