MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / get_session

Function get_session

core/src/task.rs:424–426  ·  view source on GitHub ↗

Finds the session with the given SID.

(sid: Pid)

Source from the content-addressed store, hash-verified

422
423/// Finds the session with the given SID.
424pub fn get_session(sid: Pid) -> AxResult<Arc<Session>> {
425 SESSION_TABLE.read().get(&sid).ok_or(AxError::NoSuchProcess)
426}
427
428/// Poll the timer
429pub fn poll_timer(task: &TaskInner) {

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected