PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
note.c File Reference
#include <sys/proc.h>
#include <user/common/note.h>
#include <user/common/syscalls.h>
#include <signal.h>
#include <stdatomic.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for note.c:

Go to the source code of this file.

Functions

static _Atomic (atnotify_func_t)
 
static _Atomic (sighandler_t)
 
static void _signal_invoke (int sig, const char *note)
 
static _NORETURN void _note_kernel_handler (char *note)
 
void _note_init (void)
 
uint64_t _note_handler_add (atnotify_func_t func)
 
void _note_handler_remove (atnotify_func_t func)
 
int _signal_raise (int sig)
 
sighandler_t _signal_handler_add (int sig, sighandler_t func)
 
void _signal_handler_remove (int sig, sighandler_t func)
 

Function Documentation

◆ _Atomic() [1/2]

static _Atomic ( atnotify_func_t  )
static

Definition at line 10 of file note.c.

◆ _Atomic() [2/2]

static _Atomic ( sighandler_t  )
static

Definition at line 11 of file note.c.

◆ _signal_invoke()

static void _signal_invoke ( int  sig,
const char *  note 
)
static

Definition at line 13 of file note.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _note_kernel_handler()

static _NORETURN void _note_kernel_handler ( char *  note)
static

Definition at line 29 of file note.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _note_init()

void _note_init ( void  )

Definition at line 68 of file note.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _note_handler_add()

uint64_t _note_handler_add ( atnotify_func_t  func)

Definition at line 76 of file note.c.

Here is the caller graph for this function:

◆ _note_handler_remove()

void _note_handler_remove ( atnotify_func_t  func)

Definition at line 90 of file note.c.

Here is the caller graph for this function:

◆ _signal_raise()

int _signal_raise ( int  sig)

Definition at line 102 of file note.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _signal_handler_add()

sighandler_t _signal_handler_add ( int  sig,
sighandler_t  func 
)

Definition at line 113 of file note.c.

Here is the caller graph for this function:

◆ _signal_handler_remove()

void _signal_handler_remove ( int  sig,
sighandler_t  func 
)

Definition at line 124 of file note.c.