Lines Matching refs:shmid
108 dmix->shmid = shmget(dmix->ipc_key, sizeof(snd_pcm_direct_share_t),
110 if (dmix->shmid < 0 && errno == ENOENT) {
111 if ((dmix->shmid = shmget(dmix->ipc_key, sizeof(snd_pcm_direct_share_t),
118 if (dmix->shmid < 0) {
128 dmix->shmptr = shmat(dmix->shmid, 0, 0);
135 if (shmctl(dmix->shmid, IPC_STAT, &buf) < 0) {
144 shmctl(dmix->shmid, IPC_SET, &buf);
169 if (dmix->shmid < 0)
174 if (shmctl(dmix->shmid, IPC_STAT, &buf) < 0)
177 if (shmctl(dmix->shmid, IPC_RMID, NULL) < 0)
181 dmix->shmid = -1;
365 if (shmctl(dmix->shmid, IPC_STAT, &buf) < 0) {
2169 dmix->shmid = -1;