Home
last modified time | relevance | path

Searched refs:shmid (Results 1 – 13 of 13) sorted by relevance

/external/kernel-headers/original/linux/
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, in do_shmat() argument
/external/qemu/distrib/sdl-1.2.15/src/video/x11/
DSDL_x11image.c53 shminfo.shmid = shmget(IPC_PRIVATE, screen->h*screen->pitch, in try_mitshm()
55 if ( shminfo.shmid >= 0 ) { in try_mitshm()
56 shminfo.shmaddr = (char *)shmat(shminfo.shmid, 0, 0); in try_mitshm()
69 shmctl(shminfo.shmid, IPC_RMID, NULL); in try_mitshm()
DSDL_x11yuv.c341 yuvshm->shmid = shmget(IPC_PRIVATE, hwdata->image->data_size, in X11_CreateYUVOverlay()
343 if ( yuvshm->shmid >= 0 ) { in X11_CreateYUVOverlay()
344 yuvshm->shmaddr = (char *)shmat(yuvshm->shmid, 0, 0); in X11_CreateYUVOverlay()
357 shmctl(yuvshm->shmid, IPC_RMID, NULL); in X11_CreateYUVOverlay()
/external/stressapptest/src/
Dos.cc447 int shmid; in AllocateTestMem() local
450 if ((shmid = shmget(2, length, in AllocateTestMem()
461 shmaddr = shmat(shmid, NULL, NULL); in AllocateTestMem()
468 if (shmctl(shmid, IPC_RMID, NULL) < 0) { in AllocateTestMem()
478 shmid_ = shmid; in AllocateTestMem()
481 shmid, shmaddr); in AllocateTestMem()
/external/quake/quake/src/QW/client/
Dvid_x.c335 x_shminfo[frm].shmid = shmget((key_t)key, size, IPC_CREAT|0777); in ResetSharedFrameBuffers()
336 if (x_shminfo[frm].shmid==-1) in ResetSharedFrameBuffers()
341 (void *) shmat(x_shminfo[frm].shmid, 0, 0); in ResetSharedFrameBuffers()
343 printf("VID: shared memory id=%d, addr=0x%lx\n", x_shminfo[frm].shmid, in ResetSharedFrameBuffers()
353 shmctl(x_shminfo[frm].shmid, IPC_RMID, 0); in ResetSharedFrameBuffers()
/external/quake/quake/src/WinQuake/
Dvid_x.cpp414 x_shminfo[frm].shmid = shmget((key_t)key, size, IPC_CREAT|0777); in ResetSharedFrameBuffers()
415 if (x_shminfo[frm].shmid==-1) in ResetSharedFrameBuffers()
420 (void *) shmat(x_shminfo[frm].shmid, 0, 0); in ResetSharedFrameBuffers()
422 printf("VID: shared memory id=%d, addr=0x%lx\n", x_shminfo[frm].shmid, in ResetSharedFrameBuffers()
432 shmctl(x_shminfo[frm].shmid, IPC_RMID, 0); in ResetSharedFrameBuffers()
Dvid_sunx.cpp469 x_shminfo[frm].shmid = shmget((key_t)key, size, IPC_CREAT|0777); in ResetSharedFrameBuffers()
470 if (x_shminfo[frm].shmid==-1) in ResetSharedFrameBuffers()
475 (void *) shmat(x_shminfo[frm].shmid, 0, 0); in ResetSharedFrameBuffers()
477 printf("VID: shared memory id=%d, addr=0x%x\n", x_shminfo[frm].shmid, in ResetSharedFrameBuffers()
487 shmctl(x_shminfo[frm].shmid, IPC_RMID, 0); in ResetSharedFrameBuffers()
/external/valgrind/main/coregrind/m_syswrap/
Dsyswrap-amd64-linux.c958 int, shmid, const void *, shmaddr, int, shmflg); in PRE()
986 int, shmid, int, cmd, struct shmid_ds *, buf); in PRE()
Dsyswrap-generic.c1703 SizeT get_shm_size ( Int shmid ) in get_shm_size() argument
1710 SysRes __res = VG_(do_syscall3)(__NR_shmctl, shmid, in get_shm_size()
1713 SysRes __res = VG_(do_syscall3)(__NR_shmctl, shmid, in get_shm_size()
1718 SysRes __res = VG_(do_syscall3)(__NR_shmctl, shmid, VKI_IPC_STAT, (UWord)&buf); in get_shm_size()
1722 SysRes __res = VG_(do_syscall5)(__NR_ipc, 24 /* IPCOP_shmctl */, shmid, in get_shm_size()
Dsyswrap-arm-linux.c908 int, shmid, const void *, shmaddr, int, shmflg); in PRE()
944 int, shmid, int, cmd, struct shmid_ds *, buf); in PRE()
Dsyswrap-mips32-linux.c887 PRE_REG_READ3 (long, "shmctl", int, shmid, int, cmd, struct shmid_ds *, buf); in PRE()
Dsyswrap-darwin.c1879 int, shmid, const void *, shmaddr, int, shmflg); in PRE()
1895 int, shmid, int, cmd, struct vki_shmid_ds *, buf); in PRE()
/external/valgrind/main/memcheck/tests/darwin/
Dscalar.stderr.exp534 Syscall param shmat(shmid) contains uninitialised byte(s)
546 Syscall param shmctl(shmid) contains uninitialised byte(s)