/external/strace/tests-mx32/ |
D | shmxt.c | 45 void *shmaddr = shmat(id, NULL, SHM_RDONLY); in main() local 46 if (shmaddr == (void *)(-1)) in main() 48 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr); in main() 53 if (shmdt(shmaddr)) in main() 55 printf("shmdt(%p) = 0\n", shmaddr); in main() 57 ++shmaddr; in main() 58 void *shmaddr2 = shmat(id, shmaddr, SHM_RND); in main() 61 SHMAT, id, shmaddr, errno2name()); in main() 64 SHMAT, id, shmaddr, shmaddr2); in main()
|
/external/strace/tests-m32/ |
D | shmxt.c | 45 void *shmaddr = shmat(id, NULL, SHM_RDONLY); in main() local 46 if (shmaddr == (void *)(-1)) in main() 48 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr); in main() 53 if (shmdt(shmaddr)) in main() 55 printf("shmdt(%p) = 0\n", shmaddr); in main() 57 ++shmaddr; in main() 58 void *shmaddr2 = shmat(id, shmaddr, SHM_RND); in main() 61 SHMAT, id, shmaddr, errno2name()); in main() 64 SHMAT, id, shmaddr, shmaddr2); in main()
|
/external/strace/tests/ |
D | shmxt.c | 45 void *shmaddr = shmat(id, NULL, SHM_RDONLY); in main() local 46 if (shmaddr == (void *)(-1)) in main() 48 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr); in main() 53 if (shmdt(shmaddr)) in main() 55 printf("shmdt(%p) = 0\n", shmaddr); in main() 57 ++shmaddr; in main() 58 void *shmaddr2 = shmat(id, shmaddr, SHM_RND); in main() 61 SHMAT, id, shmaddr, errno2name()); in main() 64 SHMAT, id, shmaddr, shmaddr2); in main()
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | hugepage-shm.c | 58 char *shmaddr; in main() local 67 shmaddr = shmat(shmid, ADDR, SHMAT_FLAGS); in main() 68 if (shmaddr == (char *)-1) { in main() 73 printf("shmaddr: %p\n", shmaddr); in main() 77 shmaddr[i] = (char)(i); in main() 85 if (shmaddr[i] != (char)i) { in main() 91 if (shmdt((const void *)shmaddr) != 0) { in main()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat05.c | 86 char *shmaddr; in shm_test() local 92 shmaddr = shmat(shmid, 0, 0); in shm_test() 93 if (shmaddr == (char *)-1) { in shm_test() 99 shmaddr[0] = 1; in shm_test() 102 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/testcases/kernel/sched/process_stress/ |
D | process.c | 144 Pinfo *shmaddr; /* Start address of shared memory */ variable 194 extern Pinfo *shmaddr; /* shared memory pointer */ in print_shm() 205 for (pinfo = shmaddr, i = 0; i < nodesum; i++, pinfo++) { in print_shm() 298 extern Pinfo *shmaddr; /* Global shared memory address */ in rm_shmseg() 386 extern Pinfo *shmaddr; in put_proc_info() 392 smp = shmaddr + tval; in put_proc_info() 405 smp->list = (int *)(Pinfo *) (shmaddr + nodesum) + (BVAL * tval); in put_proc_info() 426 extern Pinfo *shmaddr; in notify() 431 int *listp = (shmaddr + slot)->list; in notify() 444 sprintf(mtext, "%d %d %d", i, slot, (shmaddr + slot)->pid); in notify() [all …]
|
/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 | 297 void *shmaddr; in futex_setup() local 305 shmaddr = shmat(shmid, NULL, 0); in futex_setup() 306 if (shmaddr == (char *)-1) { in futex_setup() 314 m1 = shmaddr; in futex_setup() 315 m2 = shmaddr + sizeof(*m1); in futex_setup()
|
/external/fio/os/windows/posix/include/sys/ |
D | shm.h | 38 void *shmat(int shmid, const void *shmaddr, int shmflg); 39 int shmdt(const void *shmaddr);
|
/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/swiftshader/src/Main/ |
D | FrameBufferX11.cpp | 65 shminfo.shmaddr = x_image->data = buffer = (char*)shmat(shminfo.shmid, 0, 0); in FrameBufferX11() 78 shmdt(shminfo.shmaddr); in FrameBufferX11() 106 shmdt(shminfo.shmaddr); in ~FrameBufferX11()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap05.c | 144 void *addr = NULL, *shmaddr = NULL; in overcommit() local 203 shmaddr = shmat(shmid, ADDR, SHMAT_FLAGS); in overcommit() 204 if (shmaddr == (void *)-1) in overcommit() 206 write_bytes(shmaddr); in overcommit() 207 read_bytes(shmaddr); in overcommit() 242 if (shmdt(shmaddr) != 0) in overcommit()
|
/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/fio/os/windows/ |
D | posix.c | 623 void *shmat(int shmid, const void *shmaddr, int shmflg) in shmat() argument 647 int shmdt(const void *shmaddr) in shmdt() argument 649 if (!UnmapViewOfFile(shmaddr)) { in shmdt()
|
/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() 4629 segment_info[0].shmaddr=(char *) NULL; in XGetWindowInfo() 4631 segment_info[1].shmaddr=(char *) NULL; in XGetWindowInfo() 5540 segment_info[1].shmaddr=(char *) NULL; in XMakeImage() 5554 segment_info[1].shmaddr=(char *) shmat(segment_info[1].shmid,0,0); in XMakeImage() 5564 if (segment_info[1].shmaddr) in XMakeImage() 5566 (void) shmdt(segment_info[1].shmaddr); in XMakeImage() 5567 segment_info[1].shmaddr=(char *) NULL; in XMakeImage() [all …]
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 2118 PRE_SYSCALL(shmat)(long shmid, void *shmaddr, long shmflg) {} 2120 POST_SYSCALL(shmat)(long res, long shmid, void *shmaddr, long shmflg) { 2122 if (shmaddr) 2123 POST_WRITE(shmaddr, 2124 __sanitizer::internal_strlen((const char *)shmaddr) + 1); 2132 PRE_SYSCALL(shmdt)(void *shmaddr) {} 2134 POST_SYSCALL(shmdt)(long res, void *shmaddr) { 2136 if (shmaddr) 2137 POST_WRITE(shmaddr, 2138 __sanitizer::internal_strlen((const char *)shmaddr) + 1);
|
/external/compiler-rt/lib/msan/ |
D | msan_interceptors.cc | 1191 INTERCEPTOR(void *, shmat, int shmid, const void *shmaddr, int shmflg) { in DECLARE_REAL() 1193 void *p = REAL(shmat)(shmid, shmaddr, shmflg); in DECLARE_REAL()
|
/external/valgrind/memcheck/tests/darwin/ |
D | scalar.stderr.exp | 629 Syscall param shmat(shmaddr) contains uninitialised byte(s) 660 Syscall param shmdt(shmaddr) contains uninitialised byte(s)
|
/external/valgrind/coregrind/m_syswrap/ |
D | syswrap-darwin.c | 2560 int, shmid, const void *, shmaddr, int, shmflg); in PRE() 2587 PRE_REG_READ1(long, "shmdt", const void *, shmaddr); in PRE()
|
D | syswrap-solaris.c | 2625 int, shmid, const void *, shmaddr, int, shmflg); in PRE() 2726 const void *, shmaddr); in PRE()
|
D | syswrap-linux.c | 4452 int, shmid, const void *, shmaddr, int, shmflg); in PRE() 4476 PRE_REG_READ1(long, "shmdt", const void *, shmaddr); in PRE()
|