Home
last modified time | relevance | path

Searched refs:pidp (Results 1 – 21 of 21) sorted by relevance

/titanic_50/usr/src/uts/common/os/
H A Dpid.c103 struct pid *pidp; in pid_lookup() local
107 for (pidp = HASHPID(pid); pidp; pidp = pidp->pid_link) { in pid_lookup()
108 if (pidp->pid_id == pid) { in pid_lookup()
109 ASSERT(pidp->pid_ref > 0); in pid_lookup()
113 return (pidp); in pid_lookup()
163 struct pid *pidp; in pid_allocate() local
167 pidp = kmem_zalloc(sizeof (struct pid), KM_SLEEP); in pid_allocate()
205 pidp->pid_link = HASHPID(newpid); in pid_allocate()
206 HASHPID(newpid) = pidp; in pid_allocate()
207 pidp->pid_ref = 1; in pid_allocate()
[all …]
H A Dpgrp.c78 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 Dstreamio.c4607 struct pid *pidp; in strioctl() local
4610 pidp = curproc->p_pidp; in strioctl()
4616 for (ssp = stp->sd_siglist; ssp && (ssp->ss_pidp != pidp); in strioctl()
4637 ssp->ss_pidp = pidp; in strioctl()
4638 ssp->ss_pid = pidp->pid_id; in strioctl()
4645 PID_HOLD(pidp); in strioctl()
4659 PID_RELE(pidp); in strioctl()
4689 struct pid *pidp; in strioctl() local
4691 pidp = curproc->p_pidp; in strioctl()
4694 if (ssp->ss_pidp == pidp) { in strioctl()
[all …]
H A Dstrsubr.c1051 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_50/usr/src/lib/libfakekernel/common/sys/
H A Dproc.h94 #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_50/usr/src/cmd/stat/common/
H A Ddsr.c266 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_50/usr/src/lib/libc/port/threads/
H A Dspawn.c279 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_50/usr/src/lib/libdscfg/common/
H A Dcfg_lockdlck.c102 cfg_readpid(int segment, pid_t *pidp) in cfg_readpid() argument
106 read(local_lockfd, pidp, sizeof (pid_t)); in cfg_readpid()
H A Dcfg_lockdmsg.c214 cfg_lockedby(pid_t *pidp) in cfg_lockedby() argument
219 *pidp = message_buf.pid; in cfg_lockedby()
H A Dcfg_lockd.h59 void cfg_readpid(int segment, pid_t *pidp);
/titanic_50/usr/src/cmd/syslogd/
H A Dconf.c44 open_conf_pipe(const char *cmd, char *argv[], pid_t *pidp) in open_conf_pipe() argument
93 *pidp = pid; in open_conf_pipe()
/titanic_50/usr/src/uts/common/sys/
H A Dproc.h418 #define PID_HOLD(pidp) ASSERT(MUTEX_HELD(&pidlock)); \ argument
419 ++(pidp)->pid_ref;
420 #define PID_RELE(pidp) ASSERT(MUTEX_HELD(&pidlock)); \ argument
421 (pidp)->pid_ref > 1 ? \
422 --(pidp)->pid_ref : pid_rele(pidp);
/titanic_50/usr/src/cmd/mdb/common/modules/mdb_ks/
H A Dmdb_ks.c557 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_50/usr/src/cmd/nscd/
H A Dnscd_frontend.c427 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 Dnscd_frontend.h87 void _nscd_APP_check_cred(void *buf, pid_t *pidp, char *dc_str,
/titanic_50/usr/src/lib/libvolmgt/
H A Dvolmgt.h296 int volmgt_acquire(char *dev, char *id, int ovr, char **err, pid_t *pidp);
/titanic_50/usr/src/lib/libvolmgt/common/
H A Dvolmgt.c359 volmgt_acquire(char *dev, char *id, int ovr, char **err, pid_t *pidp) in volmgt_acquire() argument
/titanic_50/usr/src/cmd/ldapcachemgr/
H A Dcachemgr.h119 extern int chg_is_called_from_nscd_or_peruser_nscd(char *dc_str, pid_t *pidp);
H A Dcachemgr_change.c644 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_50/usr/src/head/
H A Dspawn.h162 pid_t *_RESTRICT_KYWD pidp,
/titanic_50/usr/src/lib/libdtrace/common/
H A Ddt_parser.c2317 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()