Searched refs:kernel_shm (Results 1 – 2 of 2) sorted by relevance
230 let shm_tot = self.id2shm.iter().fold(0, |acc, (_, kernel_shm)| { in shm_info()231 acc + PageFrameCount::from_bytes(page_align_up(kernel_shm.shm_size)) in shm_info()254 let kernel_shm = self.id2shm.get(&id).ok_or(SystemError::EINVAL)?; in shm_stat() localVariable255 let key = kernel_shm.kern_ipc_perm.key.data().to_i32().unwrap(); in shm_stat()256 let mode = kernel_shm.kern_ipc_perm.mode.bits(); in shm_stat()259 let shm_segsz = kernel_shm.shm_size; in shm_stat()260 let shm_atime = kernel_shm.shm_atim.total_nanos(); in shm_stat()261 let shm_dtime = kernel_shm.shm_dtim.total_nanos(); in shm_stat()262 let shm_ctime = kernel_shm.shm_ctim.total_nanos(); in shm_stat()263 let shm_cpid = kernel_shm.shm_cprid.data().to_u32().unwrap(); in shm_stat()[all …]
313 let kernel_shm = shm_manager_guard.get_mut(&id).ok_or(SystemError::EINVAL)?; in shmat() localVariable314 let size = page_align_up(kernel_shm.size()); in shmat()315 let mut phys = PhysPageFrame::new(kernel_shm.start_paddr()); in shmat()405 kernel_shm.update_atim(); in shmat()451 let kernel_shm = shm_manager_guard in shmdt() localVariable455 kernel_shm.update_dtim(); in shmdt()