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

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/Documentation/vm/
H A Dhugepage-shm.c56 int shmid; local
60 if ((shmid = shmget(2, LENGTH,
65 printf("shmid: 0x%x\n", shmid);
67 shmaddr = shmat(shmid, ADDR, SHMAT_FLAGS);
70 shmctl(shmid, IPC_RMID, NULL);
91 shmctl(shmid, IPC_RMID, NULL);
95 shmctl(shmid, IPC_RMID, NULL);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/alsa-lib-1.0.26/src/
H A Dshmarea.c33 int shmid; member in struct:snd_shm_area
43 * \param shmid IPC SHM ID
50 struct snd_shm_area *snd_shm_area_create(int shmid, void *ptr) argument
54 area->shmid = shmid;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/xtensa/kernel/
H A Dsyscall.c42 asmlinkage long xtensa_shmat(int shmid, char __user *shmaddr, int shmflg) argument
47 err = do_shmat(shmid, shmaddr, shmflg, &ret);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/
H A Dshm.h107 long do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr);
110 static inline long do_shmat(int shmid, char __user *shmaddr, argument
H A Dsyscalls.h668 asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg);
671 asmlinkage long sys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf);
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/util-linux/
H A Dipcs.c124 int maxid, shmid, id; local
171 "shmid", "perms", "cuid", "cgid", "uid", "gid");
177 "shmid", "owner", "attached", "detached", "changed");
183 "shmid", "owner", "cpid", "lpid");
189 "key", "shmid", "owner", "perms", "bytes", "nattch",
195 shmid = shmctl(id, SHM_STAT, &shmseg);
196 if (shmid < 0)
199 print_perms(shmid, ipcp);
206 printf("%-10d %-10.10s", shmid, pw->pw_name);
208 printf("%-10d %-10d", shmid, ipc
463 print_shm(int shmid) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/alsa-lib-1.0.26/src/pcm/
H A Dpcm_mmap.c265 int snd_pcm_channel_info_shm(snd_pcm_t *pcm, snd_pcm_channel_info_t *info, int shmid) argument
285 info->u.shm.shmid = shmid;
356 if (i1->u.shm.shmid != i->u.shm.shmid)
380 if (i->u.shm.shmid < 0) {
388 i->u.shm.shmid = id;
389 ptr = shmat(i->u.shm.shmid, 0, 0);
409 if (i1->u.shm.shmid < 0) {
410 i1->u.shm.shmid
[all...]
H A Dpcm_direct.c97 dmix->shmid = shmget(dmix->ipc_key, sizeof(snd_pcm_direct_share_t),
100 if (dmix->shmid < 0){
110 dmix->shmptr = shmat(dmix->shmid, 0, 0);
117 if (shmctl(dmix->shmid, IPC_STAT, &buf) < 0) {
126 shmctl(dmix->shmid, IPC_SET, &buf);
151 if (dmix->shmid < 0)
156 if (shmctl(dmix->shmid, IPC_STAT, &buf) < 0)
159 if (shmctl(dmix->shmid, IPC_RMID, NULL) < 0)
163 dmix->shmid = -1;
347 if (shmctl(dmix->shmid, IPC_STA
[all...]
H A Dpcm_direct.h125 int shmid; /* IPC global shared memory identification */ member in struct:snd_pcm_direct
H A Dpcm_dsnoop.c570 dsnoop->shmid = -1;
710 if (dsnoop->shmid >= 0)
H A Dpcm_dshare.c663 dshare->shmid = -1;
812 if (dshare->shmid >= 0)
H A Dpcm_dmix.c975 dmix->shmid = -1;
1127 if (dmix->shmid >= 0)
H A Dpcm_local.h123 int shmid; member in struct:_snd_pcm_channel_info::__anon1480::__anon1481
396 int snd_pcm_channel_info_shm(snd_pcm_t *pcm, snd_pcm_channel_info_t *info, int shmid);
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/sysklogd/
H A Dsyslogd.c76 int shmid; /* ipc shared memory id */ \
122 .shmid = -1,
188 if (G.shmid != -1) {
191 if (G.shmid != -1) {
192 shmctl(G.shmid, IPC_RMID, NULL);
204 G.shmid = shmget(KEY_ID, G.shm_size, IPC_CREAT | 0644);
205 if (G.shmid == -1) {
209 G.shbuf = shmat(G.shmid, NULL, 0);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/alsa-lib-1.0.26/aserver/
H A Daserver.c281 int shmid; local
295 shmid = shmget(IPC_PRIVATE, PCM_SHM_SIZE, 0666);
296 if (shmid < 0) {
301 client->transport.shm.ctrl_id = shmid;
302 client->transport.shm.ctrl = shmat(shmid, 0, 0);
305 shmctl(shmid, IPC_RMID, 0);
309 *cookie = shmid;
545 int shmid; local
555 shmid = shmget(IPC_PRIVATE, CTL_SHM_SIZE, 0666);
556 if (shmid <
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/ipc/
H A Dshm.c111 " key shmid perms size cpid lpid nattch uid gid cuid cgid atime dtime ctime\n",
402 * shmid gets reported as "inode#" in /proc/pid/maps.
596 static int shmctl_down(struct ipc_namespace *ns, int shmid, int cmd, argument
609 ipcp = ipcctl_pre_down(&shm_ids(ns), shmid, cmd, &shmid64.shm_perm, 0);
636 SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, struct shmid_ds __user *, buf)
642 if (cmd < 0 || shmid < 0) {
708 shp = shm_lock(ns, shmid);
715 shp = shm_lock_check(ns, shmid);
751 shp = shm_lock_check(ns, shmid);
792 err = shmctl_down(ns, shmid, cm
811 do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/alsa-lib-1.0.26/include/
H A Dglobal.h130 struct snd_shm_area *snd_shm_area_create(int shmid, void *ptr);
H A Daserver.h102 int shmid; member in struct:__anon1367::__anon1368::__anon1377
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/pcp/
H A Dsamba.c147 int shmid = -1; variable
299 if ((shmid = shmget(PROF_SHMEM_KEY, 0, 0)) == -1) {
300 fprintf(stderr, "shmid: %s\n", strerror(errno));
304 shmheader = (struct profile_header *)shmat(shmid, NULL, SHM_RDONLY);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavdevice/
H A Dxv.c202 xv->yuv_shminfo.shmid = shmget(IPC_PRIVATE, xv->yuv_image->data_size,
204 xv->yuv_shminfo.shmaddr = (char *)shmat(xv->yuv_shminfo.shmid, 0, 0);
210 shmctl(xv->yuv_shminfo.shmid, IPC_RMID, 0);
H A Dx11grab.c238 x11grab->shminfo.shmid = shmget(IPC_PRIVATE,
241 if (x11grab->shminfo.shmid == -1) {
246 x11grab->shminfo.shmaddr = image->data = shmat(x11grab->shminfo.shmid, 0, 0);
597 shmctl(x11grab->shminfo.shmid, IPC_RMID, NULL);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavdevice/
H A Dx11grab.c233 x11grab->shminfo.shmid = shmget(IPC_PRIVATE,
236 if (x11grab->shminfo.shmid == -1) {
241 x11grab->shminfo.shmaddr = image->data = shmat(x11grab->shminfo.shmid, 0, 0);
564 shmctl(x11grab->shminfo.shmid, IPC_RMID, NULL);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/torture/
H A Dtorture.c74 int shmid; local
77 shmid = shmget(IPC_PRIVATE, size, S_IRUSR | S_IWUSR);
78 if (shmid == -1) {
82 ret = (void *)shmat(shmid, 0, 0);
89 just that the shmid is no longer valid for other shm calls. This
94 shmctl(shmid, IPC_RMID, 0);

Completed in 311 milliseconds