Home
last modified time | relevance | path

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

12

/external/strace/tests-mx32/
Dshmxt.c49 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/
Dshmxt.c49 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/
Dshmxt.c49 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/
Dhugepage-shm.c59 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/
Dtst_safe_sysv_ipc.h53 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/
Dhugeshmat05.c65 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/
Dmremap04.c95 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/
Dtst_safe_sysv_ipc.c118 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/
Dprocess.c143 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/
Dshmat01.c53 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()
Dshmat02.c48 void **shmaddr; member
61 addr = shmat(*tc->shmid, *tc->shmaddr, 0); in verify_shmat()
/external/stressapptest/src/
Dos.cc526 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/
Dxlib_sw_winsys.c127 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/
Dcontext_switch.c322 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/
Dx_server_pixel_buffer.cc86 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/
Dhugemmap05.c93 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/
DFrameBufferX11.cpp69 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/
DFrameBufferX11.cpp69 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/
Dxm_buffer.c102 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/
Dvideo_x11_channel.cc255 _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/
Dipc.txt43 resource shmaddr[intptr]: 0
48 shmat(shmid ipc_shm, addr vma, flags flags[shmat_flags]) shmaddr
54 shmdt(addr shmaddr)
/external/syzkaller/sys/freebsd/
Dipc.txt47 resource shmaddr[intptr]: 0
52 shmat(shmid ipc_shm, addr vma, flags flags[shmat_flags]) shmaddr
61 shmdt(addr shmaddr)
/external/syzkaller/sys/linux/
Dipc.txt47 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/
Dlinux_syscall_hooks.h1329 #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/
Dxwindow.c351 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 …]

12