Searched refs:shmid (Results 1 - 18 of 18) sorted by relevance

/external/kernel-headers/original/linux/
H A Dshm.h98 long do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr);
100 static inline long do_shmat(int shmid, char __user *shmaddr, argument
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/sw/xlib/
H A Dxlib_sw_winsys.c125 shminfo->shmid = -1;
128 shminfo->shmid = shmget(IPC_PRIVATE, size, IPC_CREAT|0777);
129 if (shminfo->shmid < 0) {
133 shminfo->shmaddr = (char *) shmat(shminfo->shmid, 0, 0);
135 shmctl(shminfo->shmid, IPC_RMID, 0);
252 if (xlib_dt->shminfo.shmid >= 0) {
254 shmctl(xlib_dt->shminfo.shmid, IPC_RMID, 0);
256 xlib_dt->shminfo.shmid = -1;
/external/mesa3d/src/gallium/winsys/sw/xlib/
H A Dxlib_sw_winsys.c125 shminfo->shmid = -1;
128 shminfo->shmid = shmget(IPC_PRIVATE, size, IPC_CREAT|0777);
129 if (shminfo->shmid < 0) {
133 shminfo->shmaddr = (char *) shmat(shminfo->shmid, 0, 0);
135 shmctl(shminfo->shmid, IPC_RMID, 0);
252 if (xlib_dt->shminfo.shmid >= 0) {
254 shmctl(xlib_dt->shminfo.shmid, IPC_RMID, 0);
256 xlib_dt->shminfo.shmid = -1;
/external/qemu/distrib/sdl-1.2.15/src/video/x11/
H A DSDL_x11image.c53 shminfo.shmid = shmget(IPC_PRIVATE, screen->h*screen->pitch,
55 if ( shminfo.shmid >= 0 ) {
56 shminfo.shmaddr = (char *)shmat(shminfo.shmid, 0, 0);
69 shmctl(shminfo.shmid, IPC_RMID, NULL);
H A DSDL_x11yuv.c341 yuvshm->shmid = shmget(IPC_PRIVATE, hwdata->image->data_size,
343 if ( yuvshm->shmid >= 0 ) {
344 yuvshm->shmaddr = (char *)shmat(yuvshm->shmid, 0, 0);
357 shmctl(yuvshm->shmid, IPC_RMID, NULL);
/external/chromium_org/media/cast/test/
H A Dlinux_output_window.cc94 shminfo_.shmid = shmget(IPC_PRIVATE,
97 shminfo_.shmaddr = image_->data = (char*) shmat(shminfo_.shmid, 0, 0);
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/x11/
H A Dxm_buffer.c91 b->shminfo.shmid = shmget(IPC_PRIVATE, b->backxrb->ximage->bytes_per_line
93 if (b->shminfo.shmid < 0) {
103 = (char*)shmat(b->shminfo.shmid, 0, 0);
107 shmctl(b->shminfo.shmid, IPC_RMID, 0);
127 shmctl(b->shminfo.shmid, IPC_RMID, 0);
134 shmctl(b->shminfo.shmid, IPC_RMID, 0); /* nobody else needs it */
148 shmctl(b->shminfo.shmid, IPC_RMID, 0);
/external/mesa3d/src/mesa/drivers/x11/
H A Dxm_buffer.c91 b->shminfo.shmid = shmget(IPC_PRIVATE, b->backxrb->ximage->bytes_per_line
93 if (b->shminfo.shmid < 0) {
103 = (char*)shmat(b->shminfo.shmid, 0, 0);
107 shmctl(b->shminfo.shmid, IPC_RMID, 0);
127 shmctl(b->shminfo.shmid, IPC_RMID, 0);
134 shmctl(b->shminfo.shmid, IPC_RMID, 0); /* nobody else needs it */
148 shmctl(b->shminfo.shmid, IPC_RMID, 0);
/external/chromium_org/content/browser/renderer_host/
H A Dbacking_store_gtk.cc549 shminfo.shmid = shmget(IPC_PRIVATE, image->bytes_per_line * image->height,
551 if (shminfo.shmid == -1) {
557 VLOG(1) << "Got shared memory segment " << shminfo.shmid;
560 void* mapped_memory = shmat(shminfo.shmid, NULL, SHM_RDONLY);
561 shmctl(shminfo.shmid, IPC_RMID, 0);
577 VLOG(1) << "Using X shared memory segment " << shminfo.shmid;
/external/stressapptest/src/
H A Dos.cc447 int shmid; local
450 if ((shmid = shmget(2, length,
461 shmaddr = shmat(shmid, NULL, NULL);
468 if (shmctl(shmid, IPC_RMID, NULL) < 0) {
478 shmid_ = shmid;
481 shmid, shmaddr);
/external/chromium_org/sandbox/linux/seccomp-bpf/
H A Ddemo.cc497 int shmid; local
499 if ((shmid = shmget(IPC_PRIVATE, 4096, IPC_CREAT|0600)) < 0 ||
500 (addr = shmat(shmid, NULL, 0)) == reinterpret_cast<void *>(-1) ||
502 shmctl(shmid, IPC_RMID, NULL)) {
/external/chromium_org/ui/base/x/
H A Dx11_util.cc318 shminfo.shmid = shmkey;
1115 shminfo.shmid = shared_memory_key;
1122 << shminfo.shmid;
1125 VLOG(1) << "X attached to shared memory segment " << shminfo.shmid;
/external/valgrind/main/coregrind/m_syswrap/
H A Dsyswrap-amd64-linux.c958 int, shmid, const void *, shmaddr, int, shmflg);
986 int, shmid, int, cmd, struct shmid_ds *, buf);
H A Dsyswrap-generic.c1703 SizeT get_shm_size ( Int shmid )
1710 SysRes __res = VG_(do_syscall3)(__NR_shmctl, shmid,
1713 SysRes __res = VG_(do_syscall3)(__NR_shmctl, shmid,
1718 SysRes __res = VG_(do_syscall3)(__NR_shmctl, shmid, VKI_IPC_STAT, (UWord)&buf);
1722 SysRes __res = VG_(do_syscall5)(__NR_ipc, 24 /* IPCOP_shmctl */, shmid,
1735 /* void *shmat(int shmid, const void *shmaddr, int shmflg); */
1838 /* int shmctl(int shmid, int cmd, struct shmid_ds *buf); */
H A Dsyswrap-arm-linux.c908 int, shmid, const void *, shmaddr, int, shmflg);
944 int, shmid, int, cmd, struct shmid_ds *, buf);
H A Dsyswrap-mips32-linux.c887 PRE_REG_READ3 (long, "shmctl", int, shmid, int, cmd, struct shmid_ds *, buf);
H A Dsyswrap-darwin.c1879 int, shmid, const void *, shmaddr, int, shmflg);
1895 int, shmid, int, cmd, struct vki_shmid_ds *, buf);
/external/valgrind/main/memcheck/tests/darwin/
H A Dscalar.stderr.exp534 Syscall param shmat(shmid) contains uninitialised byte(s)
546 Syscall param shmctl(shmid) contains uninitialised byte(s)

Completed in 1724 milliseconds