Skip to content

SyscallHandler

SyscallHandler<K> = (proc, …args) => number | bigint | void | Promise<number | bigint | void>

Defined in: src/syscall/table.ts:21

What a syscall does.

The Process is the kernel’s, and never crosses back over: a handler that has something bigger than a number to return leaves it in the process’ region with proc.thread.put.

K extends keyof Syscalls

Process

Parameters<Syscalls[K]>

number | bigint | void | Promise<number | bigint | void>