MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / get_user_token

Method get_user_token

os/src/task/process.rs:39–41  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

37impl ProcessControlBlockInner {
38 #[allow(unused)]
39 pub fn get_user_token(&self) -> usize {
40 self.memory_set.token()
41 }
42
43 pub fn alloc_fd(&mut self) -> usize {
44 if let Some(fd) = (0..self.fd_table.len()).find(|fd| self.fd_table[*fd].is_none()) {

Callers

nothing calls this directly

Calls 1

tokenMethod · 0.45

Tested by

no test coverage detected