Lines Matching refs:mode
120 shp->shm_perm.mode |= SHM_DEST; in do_shm_rmid()
313 (shp->shm_perm.mode & SHM_DEST)); in shm_may_destroy()
534 static long shm_fallocate(struct file *file, int mode, loff_t offset, in shm_fallocate() argument
541 return sfd->file->f_op->fallocate(file, mode, offset, len); in shm_fallocate()
627 shp->shm_perm.mode = (shmflg & S_IRWXUGO); in newseg()
793 out->shm_perm.mode = tbuf_old.shm_perm.mode; in copy_shmid_from_user()
1112 if (!err && !(shp->shm_perm.mode & SHM_LOCKED)) { in shmctl_do_lock()
1113 shp->shm_perm.mode |= SHM_LOCKED; in shmctl_do_lock()
1120 if (!(shp->shm_perm.mode & SHM_LOCKED)) in shmctl_do_lock()
1123 shp->shm_perm.mode &= ~SHM_LOCKED; in shmctl_do_lock()
1762 shp->shm_perm.mode, in sysvipc_shm_proc_show()