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: Nonefall 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