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.
- Scheduler
Address Space Activation - An inline reservation, subsequently owned by the CPU that installs it.
- Task
Address Space - Move-only runtime token for one user address space.
- User
Context Options - Initial user address space and architecture-specific floating-point state.
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§
- builder
- Applies ArceOS stack and guard-page defaults to the common thread builder.
- 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 - Exits an ArceOS task, preserving the primary bootstrap termination policy.
- prepare_
user_ ⚠thread - Prepares user architecture resources without publishing or activating the task.
- reset_
current_ user_ fp_ state - Resets the current task’s user FPU image during a successful executable replacement.
- switch_
current_ address_ space - Replaces the running user task’s owning address-space token.