Function context_switch

Source
pub unsafe extern "C" fn context_switch(
    from: *mut KContext,
    to: *const KContext,
)
Expand description

Context Switch

Save the context of current task and switch to new task.

ยงSafety

This function is unsafe because it performs a context switch, which can lead to undefined behavior if not used correctly.