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

/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dshm.c30 ** shmid -- pointer to return id.
42 sm_shmstart(key, size, shmflg, shmid, owner)
46 int *shmid;
57 *shmid = shmget(key, size, shmflg);
58 if (*shmid < 0)
61 shm = shmat(*shmid, (void *) 0, 0);
69 if (shm != SM_SHM_NULL || *shmid >= 0)
70 sm_shmstop(shm, *shmid, owner);
71 *shmid = SM_SHM_NO_ID;
82 ** shmid
[all...]
H A Dt-shm.c49 int *shm, shmid; local
52 shm = (int *) sm_shmstart(T_SHMKEY, SHMSIZE, 0, &shmid, owner);
89 i = sm_shmsetowner(shmid, getuid(), getgid(), 0644);
94 return sm_shmstop((void *) shm, shmid, owner);
117 int *shm, shmid; local
120 shm = (int *) sm_shmstart(T_SHMKEY, size, 0, &shmid, owner);
137 return sm_shmstop((void *) shm, shmid, owner);
160 int *shm, shmid; local
163 shm = (int *) sm_shmstart(T_SHMKEY, SHMSIZE, 0, &shmid, owner);
174 r = sm_shmsetowner(shmid, getui
[all...]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dshmsys.c47 shmat(int shmid, const void *shmaddr, int shmflg) argument
52 error = __systemcall(&rval, SYS_shmsys, SHMAT, shmid, shmaddr, shmflg);
59 shmctl(int shmid, int cmd, struct shmid_ds *buf) argument
65 return (syscall(SYS_shmsys, SHMCTL, shmid, cmd, buf));
69 shmctl64(int shmid, int cmd, struct shmid_ds64 *buf) argument
75 return (syscall(SYS_shmsys, SHMCTL, shmid, cmd, buf));
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dshmsys.c63 shmat(int shmid, char *shmaddr, int shmflg) argument
65 return ((char *)_syscall(SYS_shmsys, SHMAT, shmid, shmaddr, shmflg));
69 shmctl(int shmid, int cmd, struct shmid_ds *buf) argument
80 ret = _syscall(SYS_shmsys, SHMCTL, shmid, cmd, 0);
94 ret = _syscall(SYS_shmsys, SHMCTL, shmid, cmd, &n_buf);
126 int shmid, shmflg, cmd, size; local
134 shmid = va_arg(ap, int);
138 return ((int)shmat(shmid, shmaddr, shmflg));
140 shmid = va_arg(ap, int);
144 return (shmctl(shmid, cm
[all...]
/illumos-gate/usr/src/cmd/ptools/pmap/
H A Dpmap_common.c118 uintptr_t vaddr, size_t size, int mflags, int shmid, int *mtypesp)
123 if (shmid == -1)
124 (void) snprintf(name, PATH_MAX, " [ %s shmid=null ]",
127 (void) snprintf(name, PATH_MAX, " [ %s shmid=0x%x ]",
128 (mflags & MA_NORESERVE) ? "ism" : "dism", shmid);
131 if (shmid == -1)
132 (void) sprintf(name, " [ shmid=null ]");
134 (void) sprintf(name, " [ shmid=0x%x ]", shmid);
117 anon_name(char *name, const pstatus_t *Psp, lwpstack_t *stacks, uint_t nstacks, uintptr_t vaddr, size_t size, int mflags, int shmid, int *mtypesp) argument
/illumos-gate/usr/src/cmd/mdb/common/modules/ipc/
H A Dipc.c214 shm_print(kshmid_t *shmid, uintptr_t addr) argument
218 nattch = shmid->shm_perm.ipc_ref - (IPC_FREE(&shmid->shm_perm) ? 0 : 1);
223 shmid->shm_segsz, shmid->shm_amp, shmid->shm_lkcnt,
224 (int)shmid->shm_lpid, (int)shmid->shm_cpid, nattch,
225 shmid->shm_ismattch);
227 printtime_nice("atime: ", shmid
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dshm.c254 shmat(int shmid, caddr_t uaddr, int uflags, uintptr_t *rvp) argument
270 if ((lock = ipc_lookup(shm_svc, shmid, (kipc_perm_t **)&sp)) == NULL)
624 shmctl(int shmid, int cmd, void *arg) argument
652 return (ipc_rmid(shm_svc, shmid, cr));
655 if ((lock = ipc_lookup(shm_svc, shmid, (kipc_perm_t **)&sp)) == NULL)
/illumos-gate/usr/src/lib/madv/common/
H A Dmadv.c671 shmat(int shmid, const void *shmaddr, int shmflag) argument
689 result = shmatfunc(shmid, shmaddr, shmflag);
707 rc = shmctl(shmid, IPC_STAT, &mds);
/illumos-gate/usr/src/cmd/avs/sdbc/
H A Dsd_diag.c553 int shmid; variable
719 if ((shmid = shmget(IPC_PRIVATE, sizeof (struct shm_struct),
726 shm = (struct shm_struct *)shmat(shmid, NULL, 0);
763 (void) shmctl(shmid, IPC_RMID, 0);
/illumos-gate/usr/src/lib/libc/port/
H A Dllib-lc1411 void *shmat(int shmid, const void *shmaddr, int shmflg);
1412 int shmctl(int shmid, int cmd, struct shmid_ds *buf);
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_event.c1279 long shmid; member in struct:b

Completed in 101 milliseconds