Expand description
ArceOS ownership and trait-FFI glue for the OS-independent task system.
Structs§
- Address
Space CpuState - Shared CPU-footprint state for one hardware page-table root.
- Address
Space Switch Proof - Evidence that this CPU has replaced its previous hardware root.
- Prepared
Thread - Scheduler thread whose resources and registry identity exist but which is not yet runnable.
- Scheduler
Address Space Activation - An inline reservation, subsequently owned by the CPU that installs it.
- Staged
Thread - Scheduler thread placed on a run queue but not yet activated by its OS.
- Task
Address Space - Move-only runtime token for one user address space.
- Thread
OsExtension Borrow - OS extension borrowed through the runtime’s outer scheduler extension.
- Thread
OsExtension Lease - OS extension lease for current-thread lookups without an existing handle.
Traits§
- Scheduler
Address Space Owner - Preallocated MM accounting retained by one CPU activation.
- User
Address Space Owner - OS ownership held by a runtime task token until its last CPU lease drains.
Functions§
- current_
os_ extension - Leases the current thread’s composed OS extension.
- default_
task_ stack_ size - Returns the kernel stack size used by ordinary runtime threads.
- detach_
current_ address_ space - Detaches the running user task from its address space before exit
publication, matching Linux
exit_mmordering. - exit_
current - Stores the exit code, marks the current thread exited, and switches away.
- join_
thread - Waits for an exited thread and returns its exit code.
- prepare_
raw - Creates a scheduler-owned kernel thread without making it runnable.
- prepare_
raw_ ⚠with_ extension_ in_ address_ space_ and_ scheduler_ state - Prepares a user thread without making it runnable.
- reset_
current_ user_ fp_ state - Resets the current task’s user FPU image during a successful executable replacement.
- spawn_
raw - Creates a scheduler-owned kernel thread and enqueues it on the current CPU.
- spawn_
raw_ with_ affinity - Creates a scheduler-owned kernel thread with pre-publication affinity.
- spawn_
raw_ ⚠with_ extension - Creates a kernel thread while retaining one OS-specific extension.
- spawn_
raw_ ⚠with_ extension_ and_ affinity - Creates a kernel thread with an OS extension and pre-publication affinity.
- spawn_
raw_ ⚠with_ extension_ in_ address_ space - Creates a scheduler thread whose architecture context retains a user page table.
- spawn_
raw_ ⚠with_ extension_ in_ address_ space_ and_ policy - Prepares a user thread with its scheduler state installed before publication.
- spawn_
raw_ with_ policy_ and_ affinity - Creates a scheduler-owned kernel service thread with policy and affinity installed before run-queue publication.
- switch_
current_ address_ space - Replaces the running user task’s owning address-space token.
- thread_
os_ extension - Borrows the OS extension composed inside a runtime-owned thread record.
- wait_
thread - Waits for a thread to finish executing without consuming its owning handle.