/kernel/liteos_a/syscall/ |
H A D | vm_syscall.c | 69 int SysShmGet(key_t key, size_t size, int shmflg) in SysShmGet() argument 73 ret = ShmGet(key, size, shmflg); in SysShmGet() 81 void *SysShmAt(int shmid, const void *shmaddr, int shmflg) in SysShmAt() argument 85 ret = ShmAt(shmid, shmaddr, shmflg); in SysShmAt()
|
H A D | los_syscall.h | 176 extern int SysShmGet(key_t key, size_t size, int shmflg);
177 extern void *SysShmAt(int shmid, const void *shmaddr, int shmflg);
|
/kernel/liteos_a/kernel/base/vm/ |
H A D | shm.c | 229 STATIC INT32 ShmAllocSeg(key_t key, size_t size, INT32 shmflg) in ShmAllocSeg() argument 255 seg->ds.shm_perm.mode = (UINT32)shmflg & ACCESSPERMS; in ShmAllocSeg() 469 INT32 ShmGet(key_t key, size_t size, INT32 shmflg) in ShmGet() argument 477 ret = ShmAllocSeg(key, size, shmflg); in ShmGet() 481 if (((UINT32)shmflg & IPC_CREAT) == 0) { in ShmGet() 485 ret = ShmAllocSeg(key, size, shmflg); in ShmGet() 489 if (((UINT32)shmflg & IPC_CREAT) && in ShmGet() 490 ((UINT32)shmflg & IPC_EXCL)) { in ShmGet() 494 ret = ShmPermCheck(ShmFindSeg(shmid), (UINT32)shmflg & ACCESSPERMS); in ShmGet() 499 ret = ShmSegValidCheck(shmid, size, shmflg); in ShmGet() 516 ShmatParamCheck(const VOID *shmaddr, INT32 shmflg) ShmatParamCheck() argument 530 ShmatVmmAlloc(struct shmIDSource *seg, const VOID *shmaddr, INT32 shmflg, UINT32 prot) ShmatVmmAlloc() argument 577 ShmAt(INT32 shmid, const VOID *shmaddr, INT32 shmflg) ShmAt() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | shm.h | 17 long do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr, 28 int shmflg, unsigned long *addr, in do_shmat() 27 do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr, unsigned long shmlba) do_shmat() argument
|
H A D | security.h | 440 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg); 442 int security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg); 1221 int shmflg) in security_shm_associate() 1232 char __user *shmaddr, int shmflg) in security_shm_shmat() 1220 security_shm_associate(struct kern_ipc_perm *shp, int shmflg) security_shm_associate() argument 1231 security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg) security_shm_shmat() argument
|
H A D | compat.h | 714 asmlinkage long compat_sys_shmat(int shmid, compat_uptr_t shmaddr, int shmflg);
|
H A D | syscalls.h | 824 asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg); 1364 long ksys_shmget(key_t key, size_t size, int shmflg);
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | shm.h | 17 long do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr, 28 int shmflg, unsigned long *addr, in do_shmat() 27 do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr, unsigned long shmlba) do_shmat() argument
|
H A D | security.h | 465 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg); 467 int security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg); 1304 int shmflg) in security_shm_associate() 1315 char __user *shmaddr, int shmflg) in security_shm_shmat() 1303 security_shm_associate(struct kern_ipc_perm *shp, int shmflg) security_shm_associate() argument 1314 security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg) security_shm_shmat() argument
|
H A D | syscalls.h | 729 asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg); 1260 long ksys_shmget(key_t key, size_t size, int shmflg);
|
H A D | compat.h | 751 asmlinkage long compat_sys_shmat(int shmid, compat_uptr_t shmaddr, int shmflg);
|
/kernel/liteos_a/kernel/base/include/ |
H A D | los_vm_syscall.h | 67 INT32 ShmGet(key_t key, size_t size, INT32 shmflg); 68 VOID *ShmAt(INT32 shmid, const VOID *shmaddr, INT32 shmflg);
|
/kernel/linux/linux-5.10/ipc/ |
H A D | shm.c | 688 * @params: ptr to the structure that contains key, size and shmflg 695 int shmflg = params->flg; in newseg() local 719 shp->shm_perm.mode = (shmflg & S_IRWXUGO); in newseg() 730 if (shmflg & SHM_HUGETLB) { in newseg() 734 hs = hstate_sizelog((shmflg >> SHM_HUGE_SHIFT) & SHM_HUGE_MASK); in newseg() 742 if (shmflg & SHM_NORESERVE) in newseg() 746 (shmflg >> SHM_HUGE_SHIFT) & SHM_HUGE_MASK); in newseg() 752 if ((shmflg & SHM_NORESERVE) && in newseg() 821 long ksys_shmget(key_t key, size_t size, int shmflg) in ksys_shmget() argument 834 shm_params.flg = shmflg; in ksys_shmget() 1512 do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr, unsigned long shmlba) do_shmat() argument [all...] |
/kernel/linux/linux-6.6/ipc/ |
H A D | shm.c | 701 * @params: ptr to the structure that contains key, size and shmflg 708 int shmflg = params->flg; in newseg() local 732 shp->shm_perm.mode = (shmflg & S_IRWXUGO); in newseg() 743 if (shmflg & SHM_HUGETLB) { in newseg() 747 hs = hstate_sizelog((shmflg >> SHM_HUGE_SHIFT) & SHM_HUGE_MASK); in newseg() 755 if (shmflg & SHM_NORESERVE) in newseg() 758 HUGETLB_SHMFS_INODE, (shmflg >> SHM_HUGE_SHIFT) & SHM_HUGE_MASK); in newseg() 764 if ((shmflg & SHM_NORESERVE) && in newseg() 831 long ksys_shmget(key_t key, size_t size, int shmflg) in ksys_shmget() argument 844 shm_params.flg = shmflg; in ksys_shmget() 1522 do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr, unsigned long shmlba) do_shmat() argument [all...] |
/kernel/linux/linux-5.10/arch/xtensa/kernel/ |
H A D | syscall.c | 43 asmlinkage long xtensa_shmat(int shmid, char __user *shmaddr, int shmflg) in xtensa_shmat() argument 48 err = do_shmat(shmid, shmaddr, shmflg, &ret, SHMLBA); in xtensa_shmat()
|
/kernel/linux/linux-6.6/arch/xtensa/kernel/ |
H A D | syscall.c | 39 asmlinkage long xtensa_shmat(int shmid, char __user *shmaddr, int shmflg) in xtensa_shmat() argument 44 err = do_shmat(shmid, shmaddr, shmflg, &ret, SHMLBA); in xtensa_shmat()
|
/kernel/linux/linux-5.10/security/ |
H A D | security.c | 1954 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg) in security_shm_associate() argument 1956 return call_int_hook(shm_associate, 0, shp, shmflg); in security_shm_associate() 1964 int security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg) in security_shm_shmat() argument 1966 return call_int_hook(shm_shmat, 0, shp, shmaddr, shmflg); in security_shm_shmat()
|
/kernel/linux/linux-6.6/security/ |
H A D | security.c | 3676 * @shmflg: operation flags 3685 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg) in security_shm_associate() argument 3687 return call_int_hook(shm_associate, 0, shp, shmflg); in security_shm_associate() 3709 * @shmflg: operation flags 3718 char __user *shmaddr, int shmflg) in security_shm_shmat() 3720 return call_int_hook(shm_shmat, 0, shp, shmaddr, shmflg); in security_shm_shmat() 3717 security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg) security_shm_shmat() argument
|
/kernel/linux/linux-5.10/security/smack/ |
H A D | smack_lsm.c | 2982 * @shmflg: access requested 2986 static int smack_shm_associate(struct kern_ipc_perm *isp, int shmflg) in smack_shm_associate() argument 2990 may = smack_flags_to_may(shmflg); in smack_shm_associate() 3033 * @shmflg: access requested 3038 int shmflg) in smack_shm_shmat() 3042 may = smack_flags_to_may(shmflg); in smack_shm_shmat() 3037 smack_shm_shmat(struct kern_ipc_perm *isp, char __user *shmaddr, int shmflg) smack_shm_shmat() argument
|
/kernel/linux/linux-6.6/security/smack/ |
H A D | smack_lsm.c | 3125 * @shmflg: access requested 3129 static int smack_shm_associate(struct kern_ipc_perm *isp, int shmflg) in smack_shm_associate() argument 3133 may = smack_flags_to_may(shmflg); in smack_shm_associate() 3176 * @shmflg: access requested 3181 int shmflg) in smack_shm_shmat() 3185 may = smack_flags_to_may(shmflg); in smack_shm_shmat() 3180 smack_shm_shmat(struct kern_ipc_perm *isp, char __user *shmaddr, int shmflg) smack_shm_shmat() argument
|
/kernel/linux/linux-5.10/security/selinux/ |
H A D | hooks.c | 6149 static int selinux_shm_associate(struct kern_ipc_perm *shp, int shmflg) in selinux_shm_associate() argument 6202 char __user *shmaddr, int shmflg) in selinux_shm_shmat() 6206 if (shmflg & SHM_RDONLY) in selinux_shm_shmat() 6201 selinux_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg) selinux_shm_shmat() argument
|
/kernel/linux/linux-6.6/security/selinux/ |
H A D | hooks.c | 6138 static int selinux_shm_associate(struct kern_ipc_perm *shp, int shmflg) in selinux_shm_associate() argument 6187 char __user *shmaddr, int shmflg) in selinux_shm_shmat() 6191 if (shmflg & SHM_RDONLY) in selinux_shm_shmat() 6186 selinux_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg) selinux_shm_shmat() argument
|