⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

set_boot_current

Function set_boot_current 

Source
pub fn set_boot_current(pid: ProcessId, tid: ThreadId)
Expand description

Register a boot-launched process as the current process.

Called from the bootstrap wrapper before entering user mode via enter_usermode_returnable(). This allows current_process() and current_thread() to return the correct process/thread during syscalls.