/titanic_44/usr/src/uts/common/os/ |
H A D | pid.c | 102 struct pid *pidp; in pid_lookup() local 106 for (pidp = HASHPID(pid); pidp; pidp = pidp->pid_link) { in pid_lookup() 107 if (pidp->pid_id == pid) { in pid_lookup() 108 ASSERT(pidp->pid_ref > 0); in pid_lookup() 112 return (pidp); in pid_lookup() 162 struct pid *pidp; in pid_allocate() local 166 pidp = kmem_zalloc(sizeof (struct pid), KM_SLEEP); in pid_allocate() 204 pidp->pid_link = HASHPID(newpid); in pid_allocate() 205 HASHPID(newpid) = pidp; in pid_allocate() 206 pidp->pid_ref = 1; in pid_allocate() [all …]
|
H A D | pgrp.c | 78 pgsignal(pidp, sig) in pgsignal() argument 79 register struct pid *pidp; in pgsignal() 85 for (prp = pidp->pid_pglink; prp; prp = prp->p_pglink) { 98 sigtopg(pidp, sig) in sigtopg() argument 99 register struct pid *pidp; in sigtopg() 106 for (prp = pidp->pid_pglink; prp; prp = prp->p_pglink) {
|
H A D | streamio.c | 4606 struct pid *pidp; in strioctl() local 4609 pidp = curproc->p_pidp; in strioctl() 4615 for (ssp = stp->sd_siglist; ssp && (ssp->ss_pidp != pidp); in strioctl() 4636 ssp->ss_pidp = pidp; in strioctl() 4637 ssp->ss_pid = pidp->pid_id; in strioctl() 4644 PID_HOLD(pidp); in strioctl() 4658 PID_RELE(pidp); in strioctl() 4688 struct pid *pidp; in strioctl() local 4690 pidp = curproc->p_pidp; in strioctl() 4693 if (ssp->ss_pidp == pidp) { in strioctl() [all …]
|
H A D | strsubr.c | 1051 struct pid *pidp; in strsendsig() local 1063 if ((pidp = ssp->ss_pidp) == NULL) { in strsendsig() 1075 ASSERT(ssp->ss_pid == pidp->pid_id); in strsendsig() 1078 proc = prfind_zone(pidp->pid_id, ALL_ZONES); in strsendsig()
|
/titanic_44/usr/src/lib/libfakekernel/common/sys/ |
H A D | proc.h | 94 #define PID_HOLD(pidp) ASSERT(MUTEX_HELD(&pidlock)); \ argument 95 ++(pidp)->pid_ref; 96 #define PID_RELE(pidp) ASSERT(MUTEX_HELD(&pidlock)); \ argument 97 (pidp)->pid_ref > 1 ? \ 98 --(pidp)->pid_ref : pid_rele(pidp);
|
/titanic_44/usr/src/cmd/stat/common/ |
H A D | dsr.c | 266 char *pidp; /* ".<pid>... */ in lookup_ks_name() local 288 pidp = strchr(ks_name, '.'); /* start of ".<pid>" */ in lookup_ks_name() 290 if (pidp != NULL && pidp == initiator) /* can't have same start */ in lookup_ks_name() 299 if (part != NULL && pidp != NULL) in lookup_ks_name() 302 p = (part != NULL) ? part : pidp; in lookup_ks_name() 335 if (pidp != NULL) { in lookup_ks_name() 337 pidp++; /* skip '.' */ in lookup_ks_name() 339 if (*pidp != 't' || !isdigit(pidp[1])) in lookup_ks_name() 341 pid = atoi(&pidp[1]); in lookup_ks_name()
|
/titanic_44/usr/src/lib/libc/port/threads/ |
H A D | spawn.c | 279 pid_t *pidp, in posix_spawn() argument 315 if (pidp != NULL && get_error(&error) == 0) in posix_spawn() 316 *pidp = pid; in posix_spawn() 373 pid_t *pidp, in posix_spawnp() argument 429 if (pidp != NULL && get_error(&error) == 0) in posix_spawnp() 430 *pidp = pid; in posix_spawnp() 896 posix_spawn_pipe_np(pid_t *pidp, int *fdp, in posix_spawn_pipe_np() argument 941 error = posix_spawn(pidp, shpath, fact, attr, in posix_spawn_pipe_np()
|
/titanic_44/usr/src/lib/libdscfg/common/ |
H A D | cfg_lockdlck.c | 102 cfg_readpid(int segment, pid_t *pidp) in cfg_readpid() argument 106 read(local_lockfd, pidp, sizeof (pid_t)); in cfg_readpid()
|
H A D | cfg_lockdmsg.c | 214 cfg_lockedby(pid_t *pidp) in cfg_lockedby() argument 219 *pidp = message_buf.pid; in cfg_lockedby()
|
H A D | cfg_lockd.h | 59 void cfg_readpid(int segment, pid_t *pidp);
|
/titanic_44/usr/src/cmd/syslogd/ |
H A D | conf.c | 44 open_conf_pipe(const char *cmd, char *argv[], pid_t *pidp) in open_conf_pipe() argument 93 *pidp = pid; in open_conf_pipe()
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | proc.h | 416 #define PID_HOLD(pidp) ASSERT(MUTEX_HELD(&pidlock)); \ argument 417 ++(pidp)->pid_ref; 418 #define PID_RELE(pidp) ASSERT(MUTEX_HELD(&pidlock)); \ argument 419 (pidp)->pid_ref > 1 ? \ 420 --(pidp)->pid_ref : pid_rele(pidp);
|
/titanic_44/usr/src/cmd/mdb/common/modules/mdb_ks/ |
H A D | mdb_ks.c | 557 struct pid pidp; in mdb_pid2proc() local 575 if (mdb_vread(&pidp, sizeof (pidp), paddr) == -1) in mdb_pid2proc() 578 if (pidp.pid_id == pid) { in mdb_pid2proc() 582 (pidp.pid_prslot * sizeof (procp))) == -1) in mdb_pid2proc() 590 paddr = (uintptr_t)pidp.pid_link; in mdb_pid2proc() 1465 uintptr_t pidp; in mdb_dump_find_curproc() local 1468 if (mdb_readvar(&pidp, "dump_pids") == sizeof (pidp) && in mdb_dump_find_curproc() 1469 mdb_vread(&pid, sizeof (pid), pidp) == sizeof (pid) && in mdb_dump_find_curproc()
|
/titanic_44/usr/src/cmd/nscd/ |
H A D | nscd_frontend.c | 427 pid_t *pidp, in _nscd_APP_check_cred() argument 453 if (pidp != NULL) { in _nscd_APP_check_cred() 454 if (*pidp == (pid_t)-1) in _nscd_APP_check_cred() 455 *pidp = pid; in _nscd_APP_check_cred() 456 else if (*pidp != pid) { in _nscd_APP_check_cred() 470 pid, (pidp != NULL) ? *pidp : -1, ruid, euid, in _nscd_APP_check_cred()
|
H A D | nscd_frontend.h | 87 void _nscd_APP_check_cred(void *buf, pid_t *pidp, char *dc_str,
|
/titanic_44/usr/src/lib/libvolmgt/ |
H A D | volmgt.h | 296 int volmgt_acquire(char *dev, char *id, int ovr, char **err, pid_t *pidp);
|
/titanic_44/usr/src/lib/libvolmgt/common/ |
H A D | volmgt.c | 359 volmgt_acquire(char *dev, char *id, int ovr, char **err, pid_t *pidp) in volmgt_acquire() argument
|
/titanic_44/usr/src/cmd/ldapcachemgr/ |
H A D | cachemgr.h | 119 extern int chg_is_called_from_nscd_or_peruser_nscd(char *dc_str, pid_t *pidp);
|
H A D | cachemgr_change.c | 644 chg_is_called_from_nscd_or_peruser_nscd(char *dc_str, pid_t *pidp) in chg_is_called_from_nscd_or_peruser_nscd() argument 657 pid = *pidp = ucred_getpid(uc); in chg_is_called_from_nscd_or_peruser_nscd()
|
/titanic_44/usr/src/head/ |
H A D | spawn.h | 162 pid_t *_RESTRICT_KYWD pidp,
|
/titanic_44/usr/src/lib/libdtrace/common/ |
H A D | dt_parser.c | 2317 dt_ident_t *pidp; in dt_node_inline() local 2346 pidp = dt_idhash_insert(inp->din_hash, pnp->dn_string, in dt_node_inline() 2351 if (pidp == NULL) { in dt_node_inline() 2356 inp->din_argv[i] = pidp; in dt_node_inline() 2358 dt_ident_type_assign(pidp, pnp->dn_ctfp, pnp->dn_type); in dt_node_inline()
|