/external/strace/tests-mx32/ |
D | shmxt.c | 49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); in main() local 50 if (shmaddr == (void *)(-1)) in main() 52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr); in main() 57 rc = shmdt(shmaddr); in main() 58 printf("shmdt(%p) = %s\n", shmaddr, sprintrc(rc)); in main() 60 ++shmaddr; in main() 61 void *shmaddr2 = shmat(id, shmaddr, SHM_RND); in main() 64 SHMAT, id, shmaddr, errno2name()); in main() 67 SHMAT, id, shmaddr, shmaddr2); in main() 72 shmaddr = shmat(id, NULL, SHM_RDONLY|SHM_EXEC); in main() [all …]
|
/external/strace/tests-m32/ |
D | shmxt.c | 49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); in main() local 50 if (shmaddr == (void *)(-1)) in main() 52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr); in main() 57 rc = shmdt(shmaddr); in main() 58 printf("shmdt(%p) = %s\n", shmaddr, sprintrc(rc)); in main() 60 ++shmaddr; in main() 61 void *shmaddr2 = shmat(id, shmaddr, SHM_RND); in main() 64 SHMAT, id, shmaddr, errno2name()); in main() 67 SHMAT, id, shmaddr, shmaddr2); in main() 72 shmaddr = shmat(id, NULL, SHM_RDONLY|SHM_EXEC); in main() [all …]
|
/external/strace/tests/ |
D | shmxt.c | 49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); in main() local 50 if (shmaddr == (void *)(-1)) in main() 52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr); in main() 57 rc = shmdt(shmaddr); in main() 58 printf("shmdt(%p) = %s\n", shmaddr, sprintrc(rc)); in main() 60 ++shmaddr; in main() 61 void *shmaddr2 = shmat(id, shmaddr, SHM_RND); in main() 64 SHMAT, id, shmaddr, errno2name()); in main() 67 SHMAT, id, shmaddr, shmaddr2); in main() 72 shmaddr = shmat(id, NULL, SHM_RDONLY|SHM_EXEC); in main() [all …]
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
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()
|
/external/ltp/include/ |
D | tst_safe_sysv_ipc.h | 53 const void *shmaddr, int shmflg); 54 #define SAFE_SHMAT(shmid, shmaddr, shmflg) \ argument 55 safe_shmat(__FILE__, __LINE__, (shmid), (shmaddr), (shmflg)) 57 int safe_shmdt(const char *file, const int lineno, const void *shmaddr); 58 #define SAFE_SHMDT(shmaddr) safe_shmdt(__FILE__, __LINE__, (shmaddr)) argument
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat05.c | 65 char *shmaddr; in shm_test() local 71 shmaddr = shmat(shmid, 0, 0); in shm_test() 72 if (shmaddr == (char *)-1) { in shm_test() 78 shmaddr[0] = 1; in shm_test() 81 if (shmdt((const void *)shmaddr) != 0) { in shm_test()
|
/external/ltp/testcases/kernel/syscalls/mremap/ |
D | mremap04.c | 95 char *shmaddr; /* pointer to shared memory segment */ variable 125 addr = mremap(shmaddr, memsize, newsize, 0); in main() 207 shmaddr = shmat(shmid, NULL, 0); in setup() 208 if (shmaddr == (void *)-1) { in setup() 227 if (shmdt(shmaddr) < 0) { in cleanup()
|
/external/ltp/lib/ |
D | tst_safe_sysv_ipc.c | 118 const void *shmaddr, int shmflg) in safe_shmat() argument 122 rval = shmat(shmid, shmaddr, shmflg); in safe_shmat() 125 file, lineno, shmid, shmaddr, shmflg); in safe_shmat() 131 int safe_shmdt(const char *file, const int lineno, const void *shmaddr) in safe_shmdt() argument 135 rval = shmdt(shmaddr); in safe_shmdt() 138 file, lineno, shmaddr); in safe_shmdt()
|
/external/ltp/testcases/kernel/sched/process_stress/ |
D | process.c | 143 Pinfo *shmaddr; /* Start address of shared memory */ variable 193 extern Pinfo *shmaddr; /* shared memory pointer */ in print_shm() 204 for (pinfo = shmaddr, i = 0; i < nodesum; i++, pinfo++) { in print_shm() 297 extern Pinfo *shmaddr; /* Global shared memory address */ in rm_shmseg() 385 extern Pinfo *shmaddr; in put_proc_info() 391 smp = shmaddr + tval; in put_proc_info() 404 smp->list = (int *)(Pinfo *) (shmaddr + nodesum) + (BVAL * tval); in put_proc_info() 425 extern Pinfo *shmaddr; in notify() 430 int *listp = (shmaddr + slot)->list; in notify() 443 sprintf(mtext, "%d %d %d", i, slot, (shmaddr + slot)->pid); in notify() [all …]
|
/external/ltp/testcases/kernel/syscalls/ipc/shmat/ |
D | shmat01.c | 53 void **shmaddr; member 113 addr = shmat(shm_id, *tc->shmaddr, tc->flag); in verify_shmat() 131 if (expected_addr(*tc->shmaddr, addr) != addr) { in verify_shmat() 134 addr, expected_addr(*tc->shmaddr, addr)); in verify_shmat()
|
D | shmat02.c | 48 void **shmaddr; member 61 addr = shmat(*tc->shmid, *tc->shmaddr, 0); in verify_shmat()
|
/external/stressapptest/src/ |
D | os.cc | 526 void *shmaddr; in AllocateTestMem() local 539 shmaddr = shmat(shmid, NULL, 0); in AllocateTestMem() 540 if (shmaddr == reinterpret_cast<void*>(-1)) { in AllocateTestMem() 557 buf = shmaddr; in AllocateTestMem() 559 shmid, shmaddr); in AllocateTestMem() 566 void *shmaddr = NULL; in AllocateTestMem() local 594 shmaddr = mmap64(NULL, length, PROT_READ | PROT_WRITE, in AllocateTestMem() 597 if (shmaddr == reinterpret_cast<void*>(-1)) { in AllocateTestMem() 609 buf = shmaddr; in AllocateTestMem() 614 sprintf(location_message, "at %p", shmaddr); in AllocateTestMem()
|
/external/mesa3d/src/gallium/winsys/sw/xlib/ |
D | xlib_sw_winsys.c | 127 shminfo->shmaddr = (char *) -1; in alloc_shm() 134 shminfo->shmaddr = (char *) shmat(shminfo->shmid, 0, 0); in alloc_shm() 135 if (shminfo->shmaddr == (char *) -1) { in alloc_shm() 141 return shminfo->shmaddr; in alloc_shm() 260 shmdt(xlib_dt->shminfo.shmaddr); in xlib_displaytarget_destroy() 264 xlib_dt->shminfo.shmaddr = (char *) -1; in xlib_displaytarget_destroy()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/ |
D | context_switch.c | 322 void *shmaddr; in futex_setup() local 330 shmaddr = shmat(shmid, NULL, 0); in futex_setup() 331 if (shmaddr == (char *)-1) { in futex_setup() 339 m1 = shmaddr; in futex_setup() 340 m2 = shmaddr + sizeof(*m1); in futex_setup()
|
/external/webrtc/webrtc/modules/desktop_capture/x11/ |
D | x_server_pixel_buffer.cc | 86 if (shm_segment_info_->shmaddr != reinterpret_cast<char*>(-1)) in Release() 87 shmdt(shm_segment_info_->shmaddr); in Release() 130 shm_segment_info_->shmaddr = reinterpret_cast<char*>(-1); in InitShm() 140 shm_segment_info_->shmaddr = x_image_->data = in InitShm() 183 shm_segment_info_->shmaddr, in InitPixmaps()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap05.c | 93 void *addr = NULL, *shmaddr = NULL; in test_overcommit() local 133 shmaddr = SAFE_SHMAT(shmid, ADDR, SHMAT_FLAGS); in test_overcommit() 134 check_wr_bytes(shmaddr); in test_overcommit() 167 SAFE_SHMDT(shmaddr); in test_overcommit()
|
/external/swiftshader/src/Main/ |
D | FrameBufferX11.cpp | 69 shminfo.shmaddr = x_image->data = (char*)shmat(shminfo.shmid, 0, 0); in FrameBufferX11() 82 shmdt(shminfo.shmaddr); in FrameBufferX11() 116 shmdt(shminfo.shmaddr); in ~FrameBufferX11()
|
/external/swiftshader/src/WSI/ |
D | FrameBufferX11.cpp | 69 shminfo.shmaddr = x_image->data = (char*)shmat(shminfo.shmid, 0, 0); in FrameBufferX11() 82 shmdt(shminfo.shmaddr); in FrameBufferX11() 116 shmdt(shminfo.shmaddr); in ~FrameBufferX11()
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | xm_buffer.c | 102 b->shminfo.shmaddr = b->backxrb->ximage->data in alloc_back_shm_ximage() 104 if (b->shminfo.shmaddr == (char *) -1) { in alloc_back_shm_ximage() 126 shmdt(b->shminfo.shmaddr); in alloc_back_shm_ximage() 147 shmdt(b->shminfo.shmaddr); in alloc_back_shm_ximage() 181 shmdt(b->shminfo.shmaddr); in alloc_back_buffer() 400 shmdt( b->shminfo.shmaddr ); in xmesa_delete_framebuffer()
|
/external/webrtc/webrtc/modules/video_render/linux/ |
D | video_x11_channel.cc | 255 _shminfo.shmaddr = _image->data = (char*) shmat(_shminfo.shmid, 0, 0); in CreateLocalRenderer() 290 shmdt(_shminfo.shmaddr); in RemoveRenderer() 291 _shminfo.shmaddr = NULL; in RemoveRenderer()
|
/external/syzkaller/sys/netbsd/ |
D | ipc.txt | 43 resource shmaddr[intptr]: 0 48 shmat(shmid ipc_shm, addr vma, flags flags[shmat_flags]) shmaddr 54 shmdt(addr shmaddr)
|
/external/syzkaller/sys/freebsd/ |
D | ipc.txt | 47 resource shmaddr[intptr]: 0 52 shmat(shmid ipc_shm, addr vma, flags flags[shmat_flags]) shmaddr 61 shmdt(addr shmaddr)
|
/external/syzkaller/sys/linux/ |
D | ipc.txt | 47 resource shmaddr[intptr]: 0 52 shmat(shmid ipc_shm, addr vma, flags flags[shmat_flags]) shmaddr 61 shmdt(addr shmaddr)
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 1329 #define __sanitizer_syscall_pre_shmat(shmid, shmaddr, shmflg) \ argument 1330 __sanitizer_syscall_pre_impl_shmat((long)(shmid), (long)(shmaddr), \ 1332 #define __sanitizer_syscall_post_shmat(res, shmid, shmaddr, shmflg) \ argument 1333 __sanitizer_syscall_post_impl_shmat(res, (long)(shmid), (long)(shmaddr), \ 1340 #define __sanitizer_syscall_pre_shmdt(shmaddr) \ argument 1341 __sanitizer_syscall_pre_impl_shmdt((long)(shmaddr)) 1342 #define __sanitizer_syscall_post_shmdt(res, shmaddr) \ argument 1343 __sanitizer_syscall_post_impl_shmdt(res, (long)(shmaddr)) 2757 void __sanitizer_syscall_pre_impl_shmat(long shmid, long shmaddr, long shmflg); 2758 void __sanitizer_syscall_post_impl_shmat(long res, long shmid, long shmaddr, [all …]
|
/external/ImageMagick/MagickCore/ |
D | xwindow.c | 351 if (segment_info[0].shmaddr != NULL) in DestroyXResources() 352 (void) shmdt(segment_info[0].shmaddr); in DestroyXResources() 354 segment_info[0].shmaddr=NULL; in DestroyXResources() 4617 segment_info[0].shmaddr=(char *) NULL; in XGetWindowInfo() 4619 segment_info[1].shmaddr=(char *) NULL; in XGetWindowInfo() 5528 segment_info[1].shmaddr=(char *) NULL; in XMakeImage() 5542 segment_info[1].shmaddr=(char *) shmat(segment_info[1].shmid,0,0); in XMakeImage() 5552 if (segment_info[1].shmaddr) in XMakeImage() 5554 (void) shmdt(segment_info[1].shmaddr); in XMakeImage() 5555 segment_info[1].shmaddr=(char *) NULL; in XMakeImage() [all …]
|