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

Method get_addr_range

core/src/shm.rs:155–157  ·  view source on GitHub ↗

Returns the virtual address range associated with the given Pid.

(&self, pid: Pid)

Source from the content-addressed store, hash-verified

153
154 /// Returns the virtual address range associated with the given Pid.
155 pub fn get_addr_range(&self, pid: Pid) -> Option<VirtAddrRange> {
156 self.va_range.get(&pid).cloned()
157 }
158
159 /// Called by sys_shmat
160 pub fn attach_process(&mut self, pid: Pid, va_range: VirtAddrRange) {

Callers 1

sys_shmdtFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected