Home
last modified time | relevance | path

Searched refs:shmaddr (Results 1 – 9 of 9) sorted by relevance

/linux/tools/testing/selftests/mm/
H A Dhugepage-shm.c
/linux/include/linux/
H A Dshm.h17 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 Dcompat.h754 asmlinkage long compat_sys_shmat(int shmid, compat_uptr_t shmaddr, int shmflg);
/linux/tools/testing/selftests/powerpc/benchmarks/
H A Dcontext_switch.c329 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 Dadi.rst187 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 Dsyscall.c39 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 Dsecurity.c3594 * @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 Dsmack_lsm.c3250 * @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 Dhooks.c6558 char __user *shmaddr, int shmflg) in selinux_shm_shmat() argument