Home
last modified time | relevance | path

Searched refs:shm_perm (Results 1 – 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/ipc/
Dshm.c54 struct kern_ipc_perm shm_perm; member
98 ipc_unlock(&(shp)->shm_perm)
126 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in do_shm_rmid()
130 shp->shm_perm.mode |= SHM_DEST; in do_shm_rmid()
132 ipc_set_key_private(&shm_ids(ns), &shp->shm_perm); in do_shm_rmid()
173 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object()
183 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object_check()
208 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_lock()
225 ipc_lock_object(&ipcp->shm_perm); in shm_lock_by_ptr()
233 shm_perm); in shm_rcu_free()
[all …]
/kernel/liteos_a/kernel/base/vm/
Dshm.c135 g_shmSegs[i].ds.shm_perm.seq = i + 1; in ShmInit()
230 seg->ds.shm_perm.mode = (UINT32)shmflg & ACCESSPERMS; in ShmAllocSeg()
231 seg->ds.shm_perm.key = key; in ShmAllocSeg()
233 seg->ds.shm_perm.cuid = LOS_GetUserID(); in ShmAllocSeg()
234 seg->ds.shm_perm.uid = LOS_GetUserID(); in ShmAllocSeg()
235 seg->ds.shm_perm.cgid = LOS_GetGroupID(); in ShmAllocSeg()
236 seg->ds.shm_perm.gid = LOS_GetGroupID(); in ShmAllocSeg()
273 (seg->ds.shm_perm.key == key)) { in ShmFindSegByKey()
399 mode_t privMode = seg->ds.shm_perm.mode; in ShmPermCheck()
402 if ((uid == seg->ds.shm_perm.uid) || (uid == seg->ds.shm_perm.cuid)) { in ShmPermCheck()
[all …]
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/
Dshm_test_004.cpp55 ICUNIT_GOTO_EQUAL(ds.shm_perm.uid, getuid(), ds.shm_perm.uid, ERROR_OUT); in Testcase()
61 ds.shm_perm.uid = getuid(); in Testcase()
62 ds.shm_perm.gid = getgid(); in Testcase()
63 ds.shm_perm.mode = 0; in Testcase()
/kernel/linux/linux-5.10/arch/mips/include/uapi/asm/
Dshmbuf.h18 struct ipc64_perm shm_perm; /* operation perms */ member
31 struct ipc64_perm shm_perm; /* operation perms */ member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-mips/asm/
Dshmbuf.h23 struct ipc64_perm shm_perm; member
36 struct ipc64_perm shm_perm; member
/kernel/linux/linux-5.10/arch/xtensa/include/uapi/asm/
Dshmbuf.h24 struct ipc64_perm shm_perm; /* operation perms */ member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-generic/
Dshmbuf.h23 struct ipc64_perm shm_perm; member
/kernel/linux/linux-5.10/include/uapi/asm-generic/
Dshmbuf.h26 struct ipc64_perm shm_perm; /* operation perms */ member
/kernel/linux/linux-5.10/arch/parisc/include/uapi/asm/
Dshmbuf.h17 struct ipc64_perm shm_perm; /* operation perms */ member
/kernel/linux/linux-5.10/arch/powerpc/include/uapi/asm/
Dshmbuf.h23 struct ipc64_perm shm_perm; /* operation perms */ member
/kernel/linux/linux-5.10/arch/sparc/include/uapi/asm/
Dshmbuf.h15 struct ipc64_perm shm_perm; /* operation perms */ member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/asm-generic/
Dshmbuf.h10 struct ipc64_perm shm_perm; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-x86/asm/
Dshmbuf.h25 struct ipc64_perm shm_perm; member
/kernel/linux/linux-5.10/arch/x86/include/uapi/asm/
Dshmbuf.h17 struct ipc64_perm shm_perm; /* operation perms */ member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dshm.h31 struct __kernel_legacy_ipc_perm shm_perm; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dshm.h20 struct __kernel_legacy_ipc_perm shm_perm; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dshm.h29 struct ipc_perm shm_perm; /* operation perms */ member
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dcompat.h159 struct compat_ipc64_perm shm_perm; member
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dcompat.h166 struct compat_ipc64_perm shm_perm; member
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dcompat.h189 struct compat_ipc64_perm shm_perm; member
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dcompat.h164 struct compat_ipc64_perm shm_perm; member
/kernel/linux/linux-5.10/arch/parisc/include/asm/
Dcompat.h152 struct compat_ipc64_perm shm_perm; member
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dcompat.h147 struct compat_ipc64_perm shm_perm; member
/kernel/linux/linux-5.10/arch/s390/include/asm/
Dcompat.h242 struct compat_ipc64_perm shm_perm; member