PatchworkOS
966e257
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
notify.c
Go to the documentation of this file.
1
#include <
sys/proc.h
>
2
3
#include <
user/common/syscalls.h
>
4
5
uint64_t
notify
(
note_func_t
func)
6
{
7
uint64_t
result =
_syscall_notify
(func);
8
if
(result ==
ERR
)
9
{
10
errno
=
_syscall_errno
();
11
}
12
return
result;
13
}
errno
#define errno
Error number variable.
Definition
errno.h:27
note_func_t
void(* note_func_t)(char *note)
Note handler function type.
Definition
proc.h:262
notify
uint64_t notify(note_func_t func)
System call that sets the handler to be called when a note is received.
Definition
notify.c:5
ERR
#define ERR
Integer error value.
Definition
ERR.h:17
proc.h
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:17
syscalls.h
_syscall_errno
static errno_t _syscall_errno(void)
Definition
syscalls.h:113
_syscall_notify
static uint64_t _syscall_notify(note_func_t func)
Definition
syscalls.h:258
src
libstd
user
functions
proc
notify.c
Generated on Mon Dec 15 2025 21:55:53 for PatchworkOS by
1.9.8