pub fn sys_shmget(&self, key: usize, size: usize, shmflg: usize) -> SysResult {
        info!(
            "shmget: key: {}, size: {}, shmflg: {:#x}",
            key, size, shmflg
        );

        let shared_guard = ShmIdentifier::new_shared_guard(
            key as u32,
            size,
            shmflg,
            self.zircon_process().id() as u32,
        )?;
        let id = self.linux_process().shm_add(shared_guard);
        Ok(id)
    }
/// allocates a shared memory segment
///
/// returns the identifier of the shared memory segment associated with the value of the argument key
allocates a shared memory segment
returns the identifier of the shared memory segment associated with the value of the argument key
allocates a shared memory segment returns the identifier of the shared memory segment associated with the value of the argument key
pub fn sys_shmget(&self, key: usize, size: usize, shmflg: usize) -> SysResult {
        info!(
            "shmget: key: {}, size: {}, shmflg: {:#x}",
            key, size, shmflg
        );
        let shared_guard = ShmIdentifier::new_shared_guard(
            key as u32,
            size,
            shmflg,
            self.zircon_process().id() as u32,
        )?;
        let id = self.linux_process().shm_add(shared_guard);
        Ok(id)
    }
pub fn sys_shmget ( & self , key : usize , size : usize , shmflg : usize ) -> SysResult { info ! ( " " key size shmflg ) ; let shared_guard = ShmIdentifier :: new_shared_guard ( key as u32 , size , shmflg , self . zircon_process ( ) . id ( ) as u32 , ) ? ; let id = self . linux_process ( ) . shm_add ( shared_guard ) ; Ok ( id ) }
allocates a shared memory segment
returns the identifier of the shared memory segment associated with the value of the argument key
allocates a shared memory segment returns the identifier of the shared memory segment associated with the value of the argument key
&self
key
usize
size
usize
shmflg
usize
&self
key
usize
size
usize
shmflg
usize