Lines Matching refs:usize

46 int_like!(ShmId, usize);
47 int_like!(ShmKey, usize);
91 impl From<usize> for ShmCtlCmd {
92 fn from(cmd: usize) -> ShmCtlCmd { in from()
110 *self as usize == *other as usize in eq()
128 id_allocator: IdAllocator::new(0, usize::MAX - 1).unwrap(), in new()
149 size: usize, in add() argument
151 ) -> Result<usize, SystemError> { in add() argument
213 pub fn ipc_info(&self, user_buf: *const u8, from_user: bool) -> Result<usize, SystemError> { in ipc_info() argument
226 pub fn shm_info(&self, user_buf: *const u8, from_user: bool) -> Result<usize, SystemError> { in shm_info() argument
253 ) -> Result<usize, SystemError> { in shm_stat() argument
286 let r: usize = if cmd == ShmCtlCmd::IpcStat { in shm_stat()
300 ) -> Result<usize, SystemError> { in ipc_set() argument
313 pub fn ipc_rmid(&mut self, id: ShmId) -> Result<usize, SystemError> { in ipc_rmid() argument
355 pub fn shm_lock(&mut self, id: ShmId) -> Result<usize, SystemError> { in shm_lock() argument
362 pub fn shm_unlock(&mut self, id: ShmId) -> Result<usize, SystemError> { in shm_unlock() argument
377 shm_size: usize,
391 pub fn new(kern_ipc_perm: KernIpcPerm, shm_start_paddr: PhysAddr, shm_size: usize) -> Self { in new()
409 pub fn size(&self) -> usize { in size() argument
438 pub fn map_count(&self) -> usize { in map_count() argument
440 let mut id_set: HashSet<usize> = HashSet::new(); in map_count()
462 self.kern_ipc_perm.uid = shm_id_ds.uid() as usize; in copy_from()
463 self.kern_ipc_perm.gid = shm_id_ds.gid() as usize; in copy_from()
487 uid: usize,
489 gid: usize,
491 _cuid: usize,
493 _cgid: usize,
496 _seq: usize,
504 shmmax: usize,
506 shmmin: usize,
508 shmmni: usize,
510 shmseg: usize,
512 shmall: usize,
513 _unused1: usize,
514 _unused2: usize,
515 _unused3: usize,
516 _unused4: usize,
521 pub const SHMMIN: usize = 1;
523 pub const SHMMNI: usize = 4096;
525 pub const SHMMAX: usize = usize::MAX - (1 << 24);
527 pub const SHMALL: usize = usize::MAX - (1 << 24);
529 pub const SHMSEG: usize = 4096;
553 shm_tot: usize,
555 shm_rss: usize,
557 shm_swp: usize,
559 swap_attempts: usize,
561 swap_successes: usize,
567 shm_tot: usize, in new() argument
568 shm_rss: usize, in new() argument
569 shm_swp: usize, in new() argument
570 swap_attempts: usize, in new() argument
571 swap_successes: usize, in new() argument
591 shm_segsz: usize,
603 shm_map_count: usize,
604 _unused1: usize,
605 _unused2: usize,
641 _unused1: usize,
642 _unused2: usize,