Expand description
A high-level API over SafaOS’s syscalls
for example self::alloc is a high-level userspace allocator which internally uses the [self::syscalls::syssbrk] syscall
This crate also exposes raw SafaOS syscalls (see self::syscalls)
and raw SafaOS abi structures (see [self::raw])
Re-exports§
pub use safa_abi as abi;
Modules§
- alloc
- This module implements a high-level userspace allocator
which internally uses the [
crate::syscalls::syssbrk] syscall to allocate memory - errors
- ffi
- FFI bindings for SafaOS’s ABI
- process
- Module for process-related high-level functions over process related syscalls
- sync
- syscalls
- This module exposes SafaOS’s syscalls and their rust counterparts
Macros§
- exported_
func - printerr
- printerrln
- syscall
- Invokes a syscall with the given number and arguments
Number must be of type [
SyscallNum] Arguments must be of typeusizereturns aSyscallResult