| /OK3568_Linux_fs/kernel/tools/testing/selftests/vm/ |
| H A D | hugepage-shm.c | 59 char *shmaddr; in main() local 68 shmaddr = shmat(shmid, ADDR, SHMAT_FLAGS); in main() 69 if (shmaddr == (char *)-1) { in main() 74 printf("shmaddr: %p\n", shmaddr); in main() 78 shmaddr[i] = (char)(i); in main() 86 if (shmaddr[i] != (char)i) { in main() 92 if (shmdt((const void *)shmaddr) != 0) { in main()
|
| H A D | write_to_hugetlbfs.c | 31 static char *shmaddr; variable 51 if (shmdt((const void *)shmaddr) != 0) { in sig_handler()
|
| /OK3568_Linux_fs/buildroot/dl/stressapptest/git/src/ |
| H A D | os.cc | 543 void *shmaddr; in AllocateTestMem() local 556 shmaddr = shmat(shmid, NULL, 0); in AllocateTestMem() 557 if (shmaddr == reinterpret_cast<void*>(-1)) { in AllocateTestMem() 574 buf = shmaddr; in AllocateTestMem() 576 shmid, shmaddr); in AllocateTestMem() 583 void *shmaddr = NULL; in AllocateTestMem() local 611 shmaddr = mmap64(NULL, length, PROT_READ | PROT_WRITE, in AllocateTestMem() 614 if (shmaddr == reinterpret_cast<void*>(-1)) { in AllocateTestMem() 626 buf = shmaddr; in AllocateTestMem() 631 sprintf(location_message, "at %p", shmaddr); in AllocateTestMem()
|
| /OK3568_Linux_fs/kernel/Documentation/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)
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | shm.h | 17 long do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr, 27 static inline long do_shmat(int shmid, char __user *shmaddr, in do_shmat() argument
|
| H A D | syscalls.h | 823 asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg); 824 asmlinkage long sys_shmdt(char __user *shmaddr); 1365 long ksys_shmdt(char __user *shmaddr);
|
| H A D | security.h | 441 int security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg); 1231 char __user *shmaddr, int shmflg) in security_shm_shmat() argument
|
| H A D | lsm_hook_defs.h | 238 LSM_HOOK(int, 0, shm_shmat, struct kern_ipc_perm *perm, char __user *shmaddr,
|
| H A D | compat.h | 714 asmlinkage long compat_sys_shmat(int shmid, compat_uptr_t shmaddr, int shmflg);
|
| /OK3568_Linux_fs/external/xserver/hw/kdrive/ephyr/ |
| H A D | hostx.c | 450 shminfo->shmaddr = NULL; in hostx_create_shm_segment() 464 shminfo->shmaddr = in hostx_create_shm_segment() 467 if (shminfo->shmaddr == MAP_FAILED) in hostx_create_shm_segment() 468 shminfo->shmaddr = NULL; in hostx_create_shm_segment() 470 if (!shminfo->shmaddr) in hostx_create_shm_segment() 479 shminfo->shmaddr = shmat(shminfo->shmid, 0, 0); in hostx_create_shm_segment() 480 if (shminfo->shmaddr == (void *)-1) { in hostx_create_shm_segment() 481 shminfo->shmaddr = NULL; in hostx_create_shm_segment() 494 shmdt(shminfo->shmaddr); in hostx_create_shm_segment() 495 shminfo->shmaddr = NULL; in hostx_create_shm_segment() [all …]
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/ipc/ |
| H A D | shm.c | 1512 long do_shmat(int shmid, char __user *shmaddr, int shmflg, in do_shmat() argument 1516 unsigned long addr = (unsigned long)shmaddr; in do_shmat() 1585 err = security_shm_shmat(&shp->shm_perm, shmaddr, shmflg); in do_shmat() 1686 SYSCALL_DEFINE3(shmat, int, shmid, char __user *, shmaddr, int, shmflg) in SYSCALL_DEFINE3() argument 1691 err = do_shmat(shmid, shmaddr, shmflg, &ret, SHMLBA); in SYSCALL_DEFINE3() 1704 COMPAT_SYSCALL_DEFINE3(shmat, int, shmid, compat_uptr_t, shmaddr, int, shmflg) in COMPAT_SYSCALL_DEFINE3() argument 1709 err = do_shmat(shmid, compat_ptr(shmaddr), shmflg, &ret, COMPAT_SHMLBA); in COMPAT_SYSCALL_DEFINE3() 1721 long ksys_shmdt(char __user *shmaddr) in ksys_shmdt() argument 1725 unsigned long addr = (unsigned long)shmaddr; in ksys_shmdt() 1828 SYSCALL_DEFINE1(shmdt, char __user *, shmaddr) in SYSCALL_DEFINE1() argument [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/ia64/ |
| H A D | err_inject.rst | 305 void *shmaddr; 336 shmaddr = shmat(shmid, (void *)SHM_VA, 0); 337 if (shmaddr == (void*)-1) { 342 memset(shmaddr, 0, SHM_SIZE); 343 mlock(shmaddr, SHM_SIZE); 350 munlock(shmaddr, SHM_SIZE); 351 shmdt(shmaddr); 865 va1=shmaddr+parameters[i].cpu*PAGE_SIZE; 866 va2=shmaddr+parameters[i].cpu*PAGE_SIZE+PAGE_SIZE;
|
| /OK3568_Linux_fs/kernel/security/ |
| H A D | security.c | 1917 int security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg) in security_shm_shmat() argument 1919 return call_int_hook(shm_shmat, 0, shp, shmaddr, shmflg); in security_shm_shmat()
|
| /OK3568_Linux_fs/kernel/security/smack/ |
| H A D | smack_lsm.c | 3009 static int smack_shm_shmat(struct kern_ipc_perm *isp, char __user *shmaddr, in smack_shm_shmat() argument
|
| /OK3568_Linux_fs/kernel/security/selinux/ |
| H A D | hooks.c | 6225 char __user *shmaddr, int shmflg) in selinux_shm_shmat() argument
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/share/info/ |
| H A D | gdb.info | 21433 "shmaddr". 21435 (gdb) adi x/100 shmaddr 21453 variable "shmaddr": 21455 (gdb) adi a/100 shmaddr = 7 21456 (gdb) adi x/100 shmaddr
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/share/info/ |
| H A D | gdb.info | 21433 "shmaddr". 21435 (gdb) adi x/100 shmaddr 21453 variable "shmaddr": 21455 (gdb) adi a/100 shmaddr = 7 21456 (gdb) adi x/100 shmaddr
|