Module syscall

Module syscall 

Source
Expand description

Task-related system call implementations.

This module implements system calls that interact with task management, filesystem operations, and process control. Many operations leverage the VfsManager for filesystem access when tasks have isolated namespaces.

§VfsManager Integration

System calls automatically use the task’s VfsManager when available:

  • Tasks with vfs: Some(Arc<VfsManager>) use their isolated filesystem namespace
  • Tasks with vfs: None fall back to global filesystem operations
  • Bind mount operations enable controlled sharing between isolated namespaces
  • All filesystem operations are thread-safe and handle concurrent access properly

Constants§

EXECVE_FORCE_ABI_REBUILD
MAX_ARG_COUNT 🔒
NS_CREATE_IPC
NS_CREATE_NET
NS_CREATE_TASK
NS_CREATE_VFS
SYSCALL_ERROR 🔒

Functions§

sys_brk
sys_clone
sys_create_namespace
Create a new namespace for the current task (Scarlet-style smart syscall)
sys_execve
sys_execve_abi
sys_exit
sys_exit_group
Exit all tasks in the thread group
sys_get_tls
Get the TLS pointer for the current task
sys_getchar
sys_getpid
sys_getppid
sys_putchar
sys_register_abi_zone
Register an ABI zone for a specific memory range
sys_sbrk
sys_set_tid_address
Set the clear_child_tid pointer for thread exit notification
sys_set_tls
Set the TLS pointer for the current task
sys_sleep
sys_unregister_abi_zone
Unregister an ABI zone
sys_waitpid
sys_yield
Yield execution to the scheduler