Returns the virtual address range associated with the given Pid.
(&self, pid: Pid)
| 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) { |