[][src]Function sunrise_kernel::scheduler::try_get_current_process

pub fn try_get_current_process() -> Option<Arc<ProcessStruct>>

Gets the ProcessStruct of the current thread, incrementing its refcount. Will return None if we're in an early boot state, and it has not yet been initialized.