Searched refs:shmaddr (Results 1 – 9 of 9) sorted by relevance
| /linux/tools/testing/selftests/mm/ |
| H A D | hugepage-shm.c | |
| /linux/include/linux/ |
| H A D | shm.h | 17 long do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr, 26 static inline long do_shmat(int shmid, char __user *shmaddr, in do_shmat() argument
|
| H A D | compat.h | 754 asmlinkage long compat_sys_shmat(int shmid, compat_uptr_t shmaddr, int shmflg);
|
| /linux/tools/testing/selftests/powerpc/benchmarks/ |
| H A D | context_switch.c | 329 void *shmaddr; in futex_setup() local 337 shmaddr = shmat(shmid, NULL, 0); in futex_setup() 338 if (shmaddr == (char *)-1) { in futex_setup() 346 m1 = shmaddr; in futex_setup() 347 m2 = shmaddr + sizeof(*m1); in futex_setup()
|
| /linux/Documentation/arch/sparc/ |
| H A D | adi.rst | 187 char *shmaddr, *tmp_addr, *end, *veraddr, *clraddr; 219 shmaddr = shmat(shmid, NULL, 0); 220 if (shmaddr == (char *)-1) { 226 if (mprotect(shmaddr, BUFFER_SIZE, PROT_READ|PROT_WRITE|PROT_ADI)) { 234 tmp_addr = shmaddr; 235 end = shmaddr + BUFFER_SIZE; 248 tmp_addr = (void *) ((unsigned long)shmaddr << adi_nbits); 270 if (mprotect(shmaddr, BUFFER_SIZE, PROT_READ|PROT_WRITE)) { 275 if (shmdt((const void *)shmaddr) != 0) 282 if (shmdt((const void *)shmaddr) != 0)
|
| /linux/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()
|
| /linux/security/ |
| H A D | security.c | 3594 * @shmaddr: address of memory region to attach 3599 * calling process. The attaching address is specified by @shmaddr. 3604 char __user *shmaddr, int shmflg) in security_shm_shmat() 3606 return call_int_hook(shm_shmat, shp, shmaddr, shmflg); in security_shm_shmat() 3605 security_shm_shmat(struct kern_ipc_perm * shp,char __user * shmaddr,int shmflg) security_shm_shmat() argument
|
| /linux/security/smack/ |
| H A D | smack_lsm.c | 3250 * @shmaddr: unused 3255 static int smack_shm_shmat(struct kern_ipc_perm *isp, char __user *shmaddr, in smack_shm_shmat() 3251 smack_shm_shmat(struct kern_ipc_perm * isp,char __user * shmaddr,int shmflg) smack_shm_shmat() argument
|
| /linux/security/selinux/ |
| H A D | hooks.c | 6558 char __user *shmaddr, int shmflg) in selinux_shm_shmat() argument
|