Skip to main content

Module call

Module call 

Source

Constants§

WNOHANG

Functions§

abi_version
Query the kernel ABI version. Returns (major << 16) | minor.
brk
Adjust the program break (heap boundary).
call_ro
SYS_CALL interface, read-only variant
call_rw
SYS_CALL interface, read-write variant
call_wo
SYS_CALL interface, write-only variant
chan_close
Close and destroy a channel.
chan_create
Create a typed MPMC sync-channel.
chan_recv
Receive a message from a channel (blocking if empty).
chan_send
Send a message into a channel (blocking if full).
chan_try_recv
Non-blocking receive from a channel.
clock_gettime
Get the current system time.
close
Close a file
debug_log
Write a debug log message to the kernel serial console.
dup
Duplicate a file descriptor (POSIX dup). Returns the new fd.
dup2
Duplicate a file descriptor to a specific number (POSIX dup2).
execve
Replace the current process image with a new program.
exit
Terminate the current process with the given exit code.
fchmod
Change file permissions
fchown
Change file ownership
fcntl
Change file descriptor flags
flink
Create a link to a file
fmap
Map a file into memory, but with the ability to set the address to map into, either as a hint or as a requirement of the map.
fork
Fork the current process.
fpath
Retrieve the canonical path of a file
frename
Rename a file
fstat
Get metadata about an open file descriptor.
fstat_legacy
Get metadata about a file (legacy Stat struct).
fstatvfs
Get metadata about a filesystem
fsync
Sync a file descriptor to its underlying medium
ftruncate
Truncate or extend a file to a specified length
funmap
Unmap whole (or partial) continous memory-mapped files
futex
Fast userspace mutex
futimens
Set access/modify timestamps for an open file descriptor.
getdents
Read directory entries from an open directory fd.
getitimer
Get the value of an interval timer.
getpgid
Return process group ID.
getpgrp
Return current process group ID.
getpid
Return current process ID.
getppid
Return parent process ID.
getsid
Return session ID for pid (0 = current process).
gettid
Return current thread ID.
handle_close
Close a capability handle.
handle_dup
Duplicate a capability handle (legacy).
handle_grant
Grant a capability handle to another process.
handle_info
Query metadata about a capability handle.
handle_revoke
Revoke a capability handle.
handle_wait
Wait on a capability handle until it becomes signaled.
handle_wait_timeout
Wait on a capability handle with a timeout (nanoseconds).
ipc_bind_port
Bind an IPC port to a named path in the namespace.
ipc_call
Send a message and block until a reply arrives (RPC-style).
ipc_connect
Connect to an IPC service bound in the namespace.
ipc_create_port
Create a new IPC port.
ipc_recv
Receive a message from an IPC port (blocking).
ipc_reply
Reply to the sender of the last received message.
ipc_ring_create
Create a shared-memory ring buffer.
ipc_ring_map
Map a shared-memory ring buffer into the calling process.
ipc_send
Send a message through an IPC port.
ipc_try_recv
Non-blocking receive from an IPC port.
ipc_unbind_port
Unbind a namespace path from its IPC port.
kill
Send a signal to a process.
killpg
Send a signal to a process group.
lseek
Seek to offset bytes in a file descriptor.
mkns
Make a new scheme namespace
module_get_symbol
Look up a symbol exported by a kernel module.
module_load
Load a kernel module by name.
module_query
Query metadata about a loaded module.
module_unload
Unload a previously loaded kernel module.
mprotect
Change mapping flags
mremap
Remap a previously mapped memory region.
nanosleep
Sleep for the time specified in req
net_info
Query network device information.
net_recv
Receive a network packet into buf.
net_send
Send a network packet from buf.
open
Open a file at a specific path with POSIX flags.
openat
Open a file at a specific path
openat_with_filter
Open a file at a specific path with filter
pci_cfg_read
Read a PCI configuration value from addr.
pci_cfg_write
Write a PCI configuration value to addr.
pci_enum
Enumerate PCI devices matching criteria.
pipe
Create a pipe. Returns (read_fd, write_fd).
read
Read from a file descriptor into a buffer
sched_yield
Yield the process’s time slice to the kernel
sendfd
Send a file descriptor fd, handled by the scheme providing receiver_socket. flags is currently unused (must be zero), and arg is included in the scheme call.
setitimer
Set an interval timer.
setpgid
Set process group ID.
setsid
Create a new session and return its session ID.
sigaction
Install a signal handler.
sigaltstack
Set or query the alternate signal stack.
sigpending
Return the set of pending signals.
sigprocmask
Examine and change blocked signals.
sigqueue
Queue a signal with a value to a process.
sigsuspend
Temporarily replace the signal mask and suspend until a signal arrives.
sigtimedwait
Wait for a signal from set, with optional timeout.
silo_attach_module
Attach a loaded kernel module to a silo.
silo_config
Configure an existing silo.
silo_create
Create a new silo (isolated execution environment).
silo_enter_sandbox
Seal current context into sandboxed mode (no return to broader rights).
silo_event_next
Dequeue the next event from a silo’s event queue.
silo_kill
Force-kill a silo and all its processes.
silo_pledge
Tighten sandbox mode for the current silo/process context.
silo_resume
Resume a suspended silo.
silo_start
Start a silo (begin executing its init process).
silo_stop
Gracefully stop a silo.
silo_suspend
Suspend a running silo.
silo_unveil
Restrict path visibility/rights for the current sandbox context.
stat
Get metadata by path.
thread_create
Create a new userspace thread in the current process.
thread_exit
Exit the current thread with code.
thread_join
Join a thread previously created by the current task.
unlinkat
Remove a file at at specific path
unlinkat_with_filter
Remove a file at at specific path with filter
volume_info
Query volume metadata (e.g. total sector count).
volume_read
Read sectors from a volume.
volume_write
Write sectors to a volume.
waitpid
Wait for a child process (raw, single attempt).
waitpid_blocking
Wait for a child process, automatically retrying on EINTR.
write
Write a buffer to a file descriptor