/external/mesa3d/src/gallium/winsys/sw/xlib/ |
D | xlib_sw_winsys.c | 78 XShmSegmentInfo shminfo; member 124 XShmSegmentInfo *const shminfo = & buf->shminfo; in alloc_shm() local 126 shminfo->shmid = -1; in alloc_shm() 127 shminfo->shmaddr = (char *) -1; in alloc_shm() 129 shminfo->shmid = shmget(IPC_PRIVATE, size, IPC_CREAT|0777); in alloc_shm() 130 if (shminfo->shmid < 0) { in alloc_shm() 134 shminfo->shmaddr = (char *) shmat(shminfo->shmid, 0, 0); in alloc_shm() 135 if (shminfo->shmaddr == (char *) -1) { in alloc_shm() 136 shmctl(shminfo->shmid, IPC_RMID, 0); in alloc_shm() 140 shminfo->readOnly = False; in alloc_shm() [all …]
|
/external/swiftshader/src/Main/ |
D | FrameBufferX11.cpp | 66 x_image = libX11->XShmCreateImage(x_display, visual, depth, ZPixmap, 0, &shminfo, width, height); in FrameBufferX11() 68 …shminfo.shmid = shmget(IPC_PRIVATE, x_image->bytes_per_line * x_image->height, IPC_CREAT | SHM_R |… in FrameBufferX11() 69 shminfo.shmaddr = x_image->data = (char*)shmat(shminfo.shmid, 0, 0); in FrameBufferX11() 70 shminfo.readOnly = False; in FrameBufferX11() 73 libX11->XShmAttach(x_display, &shminfo); // May produce a BadAccess error in FrameBufferX11() 82 shmdt(shminfo.shmaddr); in FrameBufferX11() 83 shmctl(shminfo.shmid, IPC_RMID, 0); in FrameBufferX11() 114 libX11->XShmDetach(x_display, &shminfo); in ~FrameBufferX11() 116 shmdt(shminfo.shmaddr); in ~FrameBufferX11() 117 shmctl(shminfo.shmid, IPC_RMID, 0); in ~FrameBufferX11()
|
D | libX11.hpp | 45 …al *visual, unsigned int depth, int format, char *data, XShmSegmentInfo *shminfo, unsigned int wid… 46 Bool (*XShmAttach)(Display *display, XShmSegmentInfo *shminfo); 47 Bool (*XShmDetach)(Display *display, XShmSegmentInfo *shminfo);
|
D | FrameBufferX11.hpp | 48 XShmSegmentInfo shminfo; member in sw::FrameBufferX11
|
/external/swiftshader/src/WSI/ |
D | FrameBufferX11.cpp | 66 x_image = libX11->XShmCreateImage(x_display, visual, depth, ZPixmap, 0, &shminfo, width, height); in FrameBufferX11() 68 …shminfo.shmid = shmget(IPC_PRIVATE, x_image->bytes_per_line * x_image->height, IPC_CREAT | SHM_R |… in FrameBufferX11() 69 shminfo.shmaddr = x_image->data = (char*)shmat(shminfo.shmid, 0, 0); in FrameBufferX11() 70 shminfo.readOnly = False; in FrameBufferX11() 73 libX11->XShmAttach(x_display, &shminfo); // May produce a BadAccess error in FrameBufferX11() 82 shmdt(shminfo.shmaddr); in FrameBufferX11() 83 shmctl(shminfo.shmid, IPC_RMID, 0); in FrameBufferX11() 114 libX11->XShmDetach(x_display, &shminfo); in ~FrameBufferX11() 116 shmdt(shminfo.shmaddr); in ~FrameBufferX11() 117 shmctl(shminfo.shmid, IPC_RMID, 0); in ~FrameBufferX11()
|
D | libX11.hpp | 45 …al *visual, unsigned int depth, int format, char *data, XShmSegmentInfo *shminfo, unsigned int wid… 46 Bool (*XShmAttach)(Display *display, XShmSegmentInfo *shminfo); 47 Bool (*XShmDetach)(Display *display, XShmSegmentInfo *shminfo);
|
D | FrameBufferX11.hpp | 48 XShmSegmentInfo shminfo; member in sw::FrameBufferX11
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | xm_buffer.c | 83 ZPixmap, NULL, &b->shminfo, in alloc_back_shm_ximage() 91 b->shminfo.shmid = shmget(IPC_PRIVATE, b->backxrb->ximage->bytes_per_line in alloc_back_shm_ximage() 93 if (b->shminfo.shmid < 0) { in alloc_back_shm_ximage() 102 b->shminfo.shmaddr = b->backxrb->ximage->data in alloc_back_shm_ximage() 103 = (char*)shmat(b->shminfo.shmid, 0, 0); in alloc_back_shm_ximage() 104 if (b->shminfo.shmaddr == (char *) -1) { in alloc_back_shm_ximage() 107 shmctl(b->shminfo.shmid, IPC_RMID, 0); in alloc_back_shm_ximage() 114 b->shminfo.readOnly = False; in alloc_back_shm_ximage() 118 XShmAttach(b->xm_visual->display, &b->shminfo); in alloc_back_shm_ximage() 126 shmdt(b->shminfo.shmaddr); in alloc_back_shm_ximage() [all …]
|
D | xmesaP.h | 210 XShmSegmentInfo shminfo; member
|
/external/kernel-headers/original/uapi/linux/ |
D | shm.h | 93 struct shminfo { struct
|
/external/ltp/testcases/kernel/syscalls/ipc/shmctl/ |
D | shmctl01.c | 57 static struct shminfo info;
|
/external/toybox/toys/pending/ |
D | ipcs.c | 150 struct shminfo ipc_buf; in shm_array()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_platform_limits_posix.cc | 279 unsigned struct_shminfo_sz = sizeof(struct shminfo);
|
/external/compiler-rt/lib/msan/tests/ |
D | msan_test.cc | 1204 struct shminfo si; in TEST()
|