/src/tests/lib/libc/sys/ |
t_mincore.c | 312 int shmid; local in function:ATF_TC_BODY 317 shmid = shmget(IPC_PRIVATE, npgs * page, 320 ATF_REQUIRE_STRERROR(shmid != -1); 322 addr = shmat(shmid, NULL, 0); 350 ATF_REQUIRE_STRERROR(shmctl(shmid, IPC_RMID, NULL) == 0);
|
/src/sys/compat/linux32/common/ |
linux32_ipccall.c | 618 SCARG(&ua, shmid) = SCARG(uap, a1); 662 int shmid, cmd, error; local in function:linux32_shmctl 667 shmid = SCARG(uap, a1); 676 error = shmctl1(l, shmid, IPC_STAT, &bs); 698 return shmctl1(l, shmid, IPC_SET, &bs); 701 return shmctl1(l, shmid, IPC_RMID, NULL); 704 return shmctl1(l, shmid, SHM_LOCK, NULL); 707 return shmctl1(l, shmid, SHM_UNLOCK, NULL);
|
/src/tests/kernel/ |
t_sysv.c | 748 int shmid; local in function:sharer 751 shmid = shmget(shmkey, pgsize, 0); 752 if (shmid == -1) 755 shm_buf = shmat(shmid, NULL, 0);
|
/src/sys/compat/linux/common/ |
linux_ipc.c | 473 syscallarg(int) shmid; 566 syscallarg(int) shmid; 576 int error, i, cmd, shmid; local in function:linux_sys_shmctl 578 shmid = SCARG(uap, shmid); 586 error = shm_find_segment_perm_by_index(shmid, &perm); 589 shmid = IXSEQ_TO_IPCID(shmid, perm); 590 retval[0] = shmid; 594 error = shmctl1(l, shmid, IPC_STAT, &bs) [all...] |
/src/sys/kern/ |
sysv_shm.c | 89 int shmid; member in struct:shmmap_entry 148 shm_find_segment_by_shmid(int shmid) 155 segnum = IPCID_TO_IX(shmid); 164 if (shmseg->shm_perm._seq != IPCID_TO_SEQ(shmid)) 213 segnum = IPCID_TO_IX(shmmap_se->shmid); 260 shmmap_se->shmid = oshmmap_se->shmid; 274 shm_memlock(struct shmid_ds *shmseg, int shmid, int cmd) 350 p->p_vmspace, shmmap_se->shmid, shmmap_se->va)); 354 shmseg = &shmsegs[IPCID_TO_IX(shmmap_se->shmid)]; [all...] |