/third_party/alsa-lib/src/pcm/ |
H A D | pcm_mmap.c | 233 int snd_pcm_channel_info_shm(snd_pcm_t *pcm, snd_pcm_channel_info_t *info, int shmid) in snd_pcm_channel_info_shm() argument 253 info->u.shm.shmid = shmid; in snd_pcm_channel_info_shm() 327 if (i1->u.shm.shmid != i->u.shm.shmid) in snd_pcm_mmap() 352 if (i->u.shm.shmid < 0) { in snd_pcm_mmap() 360 i->u.shm.shmid = id; in snd_pcm_mmap() 361 ptr = shmat(i->u.shm.shmid, 0, 0); in snd_pcm_mmap() 381 if (i1->u.shm.shmid < 0) { in snd_pcm_mmap() 382 i1->u.shm.shmid in snd_pcm_mmap() [all...] |
H A D | pcm_direct.c | 108 dmix->shmid = shmget(dmix->ipc_key, sizeof(snd_pcm_direct_share_t), in snd_pcm_direct_shm_create_or_connect() 110 if (dmix->shmid < 0 && errno == ENOENT) { in snd_pcm_direct_shm_create_or_connect() 111 if ((dmix->shmid = shmget(dmix->ipc_key, sizeof(snd_pcm_direct_share_t), in snd_pcm_direct_shm_create_or_connect() 118 if (dmix->shmid < 0) { in snd_pcm_direct_shm_create_or_connect() 128 dmix->shmptr = shmat(dmix->shmid, 0, 0); in snd_pcm_direct_shm_create_or_connect() 135 if (shmctl(dmix->shmid, IPC_STAT, &buf) < 0) { in snd_pcm_direct_shm_create_or_connect() 144 shmctl(dmix->shmid, IPC_SET, &buf); in snd_pcm_direct_shm_create_or_connect() 169 if (dmix->shmid < 0) in _snd_pcm_direct_shm_discard() 174 if (shmctl(dmix->shmid, IPC_STAT, &buf) < 0) in _snd_pcm_direct_shm_discard() 177 if (shmctl(dmix->shmid, IPC_RMI in _snd_pcm_direct_shm_discard() [all...] |
/third_party/ltp/testcases/kernel/controllers/memcg/functional/ |
H A D | memcg_process.c | 207 static int shmid; in shm() local 221 shmid = shmget(key, memsize, flag); in shm() 222 if (shmid == -1) in shm() 225 p = shmat(shmid, NULL, 0); in shm() 227 shmctl(shmid, IPC_RMID, NULL); in shm() 231 if (shmctl(shmid, IPC_RMID, NULL) == -1) in shm()
|
/third_party/ltp/testcases/kernel/mce-test/tsrc/ |
H A D | hugepage.h | 105 int shmid; in alloc_shm_hugepage() local 106 if ((shmid = shmget(*key, size, in alloc_shm_hugepage() 111 addr = shmat(shmid, (void *)0x0UL, 0); in alloc_shm_hugepage() 114 shmctl(shmid, IPC_RMID, NULL); in alloc_shm_hugepage() 117 *key = shmid; in alloc_shm_hugepage()
|
H A D | tsoftinj.c | 121 int shmid = 0; in shm_hugepage() local 123 char *p = alloc_shm_hugepage(&shmid, HPS); in shm_hugepage() 130 free_shm_hugepage(shmid, p); in shm_hugepage()
|
/third_party/ltp/testcases/kernel/mce-test/hwpoison/ |
H A D | hugepage.h | 105 int shmid; in alloc_shm_hugepage() local 106 if ((shmid = shmget(*key, size, in alloc_shm_hugepage() 111 addr = shmat(shmid, (void *)0x0UL, 0); in alloc_shm_hugepage() 114 shmctl(shmid, IPC_RMID, NULL); in alloc_shm_hugepage() 117 *key = shmid; in alloc_shm_hugepage()
|
H A D | tsoftinj.c | 121 int shmid = 0; in shm_hugepage() local 123 char *p = alloc_shm_hugepage(&shmid, HPS); in shm_hugepage() 130 free_shm_hugepage(shmid, p); in shm_hugepage()
|
/third_party/ltp/testcases/kernel/syscalls/setns/ |
H A D | setns02.c | 36 static int shmid; variable 87 p = shmat(shmid, NULL, 0); in do_child_newipc() 102 p = shmat(shmid, NULL, 0); in do_child_newipc() 165 shmid = SAFE_SHMGET(ipc_key, getpagesize(), IPC_CREAT | 0666); in setup() 175 SAFE_SHMCTL(shmid, IPC_RMID, NULL); in cleanup()
|
/third_party/mesa3d/src/gallium/winsys/sw/xlib/ |
H A D | xlib_sw_winsys.c | 126 shminfo->shmid = -1; in alloc_shm() 130 shminfo->shmid = shmget(IPC_PRIVATE, size, IPC_CREAT | 0600); in alloc_shm() 131 if (shminfo->shmid < 0) { in alloc_shm() 135 shminfo->shmaddr = (char *) shmat(shminfo->shmid, 0, 0); in alloc_shm() 137 shmctl(shminfo->shmid, IPC_RMID, 0); in alloc_shm() 170 shmctl(xlib_dt->shminfo.shmid, IPC_RMID, 0); in alloc_shm_ximage() 185 shmctl(xlib_dt->shminfo.shmid, IPC_RMID, 0); in alloc_shm_ximage() 260 if (xlib_dt->shminfo.shmid >= 0) { in xlib_displaytarget_destroy() 262 shmctl(xlib_dt->shminfo.shmid, IPC_RMID, 0); in xlib_displaytarget_destroy() 264 xlib_dt->shminfo.shmid in xlib_displaytarget_destroy() [all...] |
/third_party/toybox/toys/pending/ |
H A D | ipcs.c | 13 usage: ipcs [[-smq] -i shmid] | [[-asmq] [-tcplu]] 130 printf("\nShared memory Segment shmid=%d\n" in show_shm_id() 152 int max_nr, i, shmid; in shm_array() local 192 "shmid", "owner", "attached", "detached", "changed"); in shm_array() 196 "shmid", "owner", "cpid", "lpid"); in shm_array() 200 "shmid", "perms", "cuid", "cgid", "uid", "gid"); in shm_array() 204 "key", "shmid", "owner", "perms", "bytes", "nattch", in shm_array() 209 if ((shmid = shmctl(i, SHM_STAT, &buf)) < 0 ) continue; in shm_array() 212 printf("%-10d %-10.10s", shmid, pw->pw_name); in shm_array() 213 else printf("%-10d %-10.10d", shmid, bu in shm_array() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Main/ |
H A D | FrameBufferX11.cpp | 68 shminfo.shmid = shmget(IPC_PRIVATE, x_image->bytes_per_line * x_image->height, IPC_CREAT | SHM_R | SHM_W); in FrameBufferX11() 69 shminfo.shmaddr = x_image->data = (char*)shmat(shminfo.shmid, 0, 0); in FrameBufferX11() 83 shmctl(shminfo.shmid, IPC_RMID, 0); in FrameBufferX11() 117 shmctl(shminfo.shmid, IPC_RMID, 0); in ~FrameBufferX11()
|
/third_party/ltp/testcases/kernel/mem/mtest06/ |
H A D | shmat1.c | 227 int shmid; /* shared memory id */ in shmat_shmdt() local 239 if ((shmid = shmget(shmkey, fsize, IPC_CREAT | 0666)) == -1) { in shmat_shmdt() 248 if ((map_address = shmat(shmid, NULL, 0)) in shmat_shmdt() 279 if (shmctl(shmid, IPC_RMID, NULL)) { in shmat_shmdt()
|
/third_party/alsa-lib/aserver/ |
H A D | aserver.c | 285 int shmid; in pcm_shm_open() local 299 shmid = shmget(IPC_PRIVATE, PCM_SHM_SIZE, 0666); in pcm_shm_open() 300 if (shmid < 0) { in pcm_shm_open() 305 client->transport.shm.ctrl_id = shmid; in pcm_shm_open() 306 client->transport.shm.ctrl = shmat(shmid, 0, 0); in pcm_shm_open() 309 shmctl(shmid, IPC_RMID, 0); in pcm_shm_open() 313 *cookie = shmid; in pcm_shm_open() 550 int shmid; in ctl_shm_open() local 560 shmid = shmget(IPC_PRIVATE, CTL_SHM_SIZE, 0666); in ctl_shm_open() 561 if (shmid < in ctl_shm_open() [all...] |
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
H A D | hugeshmat02.c | 43 int *shmid; member 57 addr = shmat(*(tc->shmid), tc->addr, 0); in verify_hugeshmat()
|
H A D | hugeshmat01.c | 40 int *shmid; member 61 addr = shmat(*(tc->shmid), tc->addr, tc->flags); in verify_hugeshmat()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/ |
H A D | hugeshmctl03.c | 48 int *shmid; member 84 TEST(shmctl(*(tcases[i].shmid), tcases[i].cmd, tcases[i].sbuf)); in do_child()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/shmat/ |
H A D | shmat02.c | 9 * 1) shmat() fails and set errno to EINVAL when shmid is invalid. 35 int *shmid; member 49 addr = shmat(*tc->shmid, *tc->shmaddr, 0); in verify_shmat()
|
/third_party/mesa3d/src/gallium/frontends/dri/ |
H A D | drisw.c | 81 put_image_shm(__DRIdrawable *dPriv, int shmid, char *shmaddr, in put_image_shm() argument 92 shmid, shmaddr, offset, dPriv->loaderPrivate); in put_image_shm() 96 shmid, shmaddr, offset + offset_x, dPriv->loaderPrivate); in put_image_shm() 190 int shmid, char *shmaddr, unsigned offset, in drisw_put_image_shm() 197 put_image_shm(dPriv, shmid, shmaddr, offset, offset_x, x, y, width, height, stride); in drisw_put_image_shm() 189 drisw_put_image_shm(struct dri_drawable *drawable, int shmid, char *shmaddr, unsigned offset, unsigned offset_x, int x, int y, unsigned width, unsigned height, unsigned stride) drisw_put_image_shm() argument
|
/third_party/mesa3d/src/gallium/include/frontend/ |
H A D | drisw_api.h | 23 int shmid, char *shmaddr, unsigned offset, unsigned offset_x,
|
/third_party/ltp/testcases/kernel/hotplug/memory_hotplug/ |
H A D | segment.c | 423 int shmid; in get_shm_segment() local 425 shmid = shmget(IPC_PRIVATE, segp->seg_length, SHM_R | SHM_W); in get_shm_segment() 426 if (shmid == -1) { in get_shm_segment() 434 segp->seg_shmid = shmid; in get_shm_segment()
|
/third_party/ffmpeg/libavdevice/ |
H A D | xv.c | 202 xv->yuv_shminfo.shmid = shmget(IPC_PRIVATE, xv->yuv_image->data_size, in xv_write_header() 204 xv->yuv_shminfo.shmaddr = (char *)shmat(xv->yuv_shminfo.shmid, 0, 0); in xv_write_header() 210 shmctl(xv->yuv_shminfo.shmid, IPC_RMID, 0); in xv_write_header()
|
/third_party/mesa3d/include/GL/internal/ |
H A D | dri_interface.h | 581 int shmid, char *shmaddr, unsigned offset, 590 int shmid, void *loaderPrivate); 606 int shmid, char *shmaddr, unsigned offset, 620 int shmid, void *loaderPrivate);
|
/third_party/alsa-lib/include/ |
H A D | aserver.h | 101 int shmid; member
|
H A D | global.h | 131 struct snd_shm_area *snd_shm_area_create(int shmid, void *ptr);
|
/third_party/ltp/testcases/kernel/mem/mtest07/ |
H A D | shm_test.c | 138 struct shmid *shmbuf = NULL; /* info about the segment pointed by shmkey */ in rm_shared_mem() 283 int shmkey = 1969; /* key used to generate shmid by shmget() */ in main()
|