Lines Matching refs:shmflg

700 	int shmflg = params->flg;  in newseg()  local
724 shp->shm_perm.mode = (shmflg & S_IRWXUGO); in newseg()
735 if (shmflg & SHM_HUGETLB) { in newseg()
739 hs = hstate_sizelog((shmflg >> SHM_HUGE_SHIFT) & SHM_HUGE_MASK); in newseg()
747 if (shmflg & SHM_NORESERVE) in newseg()
750 HUGETLB_SHMFS_INODE, (shmflg >> SHM_HUGE_SHIFT) & SHM_HUGE_MASK); in newseg()
756 if ((shmflg & SHM_NORESERVE) && in newseg()
823 long ksys_shmget(key_t key, size_t size, int shmflg) in ksys_shmget() argument
836 shm_params.flg = shmflg; in ksys_shmget()
842 SYSCALL_DEFINE3(shmget, key_t, key, size_t, size, int, shmflg) in SYSCALL_DEFINE3() argument
844 return ksys_shmget(key, size, shmflg); in SYSCALL_DEFINE3()
1514 long do_shmat(int shmid, char __user *shmaddr, int shmflg, in do_shmat() argument
1536 if (shmflg & SHM_RND) { in do_shmat()
1544 if (!addr && (shmflg & SHM_REMAP)) in do_shmat()
1554 } else if ((shmflg & SHM_REMAP)) in do_shmat()
1557 if (shmflg & SHM_RDONLY) { in do_shmat()
1566 if (shmflg & SHM_EXEC) { in do_shmat()
1587 err = security_shm_shmat(&shp->shm_perm, shmaddr, shmflg); in do_shmat()
1648 if (addr && !(shmflg & SHM_REMAP)) { in do_shmat()
1688 SYSCALL_DEFINE3(shmat, int, shmid, char __user *, shmaddr, int, shmflg) in SYSCALL_DEFINE3() argument
1693 err = do_shmat(shmid, shmaddr, shmflg, &ret, SHMLBA); in SYSCALL_DEFINE3()
1706 COMPAT_SYSCALL_DEFINE3(shmat, int, shmid, compat_uptr_t, shmaddr, int, shmflg) in COMPAT_SYSCALL_DEFINE3() argument
1711 err = do_shmat(shmid, compat_ptr(shmaddr), shmflg, &ret, COMPAT_SHMLBA); in COMPAT_SYSCALL_DEFINE3()