Searched defs:pid (Results 526 - 550 of 617) sorted by relevance

<<2122232425

/illumos-gate/usr/src/lib/libsysevent/
H A Dlibsysevent.c517 * Provide the pid encoded in the publisher string
521 sysevent_get_pid(sysevent_t *ev, pid_t *pid) argument
526 *pid = (pid_t)SE_KERN_PID;
535 *pid = (pid_t)atoi(part_str);
609 * pid characters
685 pid_t pid; local
699 sysevent_get_pid(ev, &pid);
700 (void) fprintf(fp, "\tpublisher = %s:%d\n", pub, (int)pid);
/illumos-gate/usr/src/uts/common/os/
H A Devchannels.c1202 void *dinfo, void *cookie, int flags, pid_t pid)
1243 esp->sd_pid = pid;
1306 sdp->sd_pid = pid;
1201 evch_chsubscribe(evch_bind_t *bp, int dtype, const char *sid, const char *class, void *dinfo, void *cookie, int flags, pid_t pid) argument
H A Dcred.c941 cred2ucred(const cred_t *cr, pid_t pid, void *buf, const cred_t *rcr) argument
955 uc->uc_pid = pid;
H A Dexec.c834 pid_t pid = pp->p_pid; local
838 "privilege removed from E/I", fn, pid);
H A Dflock.c68 #define CHECK_OWNER_LOCKS(gp, pid, sysid, vp) \
70 check_owner_locks(gp, pid, sysid, vp);
82 #define CHECK_OWNER_LOCKS(gp, pid, sysid, vp)
248 * These locks can also be thought of as pid-less since they are not tied to a
254 * locking scheme (pid-ful). This function is derived from reclock() but
268 * Since these locks are pid-less we cannot do deadlock detection with the
320 * IGN_PID is -1. We use 0 for our pid-less locks.
2916 * Remove all non-OFD locks for the vnode belonging to the given pid and sysid.
2917 * That is, since OFD locks are pid-less we'll never match on the incoming
2918 * pid
2922 cleanlocks(vnode_t *vp, pid_t pid, int sysid) argument
3660 get_lock_list(int list_type, int lock_state, int sysid, boolean_t use_sysid, pid_t pid, const vnode_t *vp, zoneid_t zoneid) argument
3749 flk_get_sleeping_locks(int sysid, pid_t pid) argument
3756 flk_get_active_locks(int sysid, pid_t pid) argument
3804 flk_active_nbmand_locks(pid_t pid) argument
4295 pid_t pid; local
4538 check_owner_locks(graph_t *gp, pid_t pid, int sysid, vnode_t *vp) argument
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dmountd.c368 int pid; local
522 * establish our lock on the lock file and write our pid to it.
526 pid = _enter_daemon_lock(MOUNTD);
527 switch (pid) {
/illumos-gate/usr/src/cmd/prctl/
H A Dprctl.c62 pid_t pid; member in struct:pr_info_handle
161 static pid_t regrab_process(pid_t pid, pr_info_handle_t *p, int, int *gret);
183 " -n name [-srx] [-v value] [-p pid ] [-e | -d action]\n"
190 " recipient pid\n"
192 " -p recipient pid of rctl to set/replace/delete/modify\n"
194 " value, and recipient pid\n"
196 " value, and recipient pid\n"
215 pid_t pid; local
237 strcmp(optarg, "pid") == 0)
311 warn(gettext("invalid pid
1389 pid_t pid; local
1650 pid_t pid; local
1977 regrab_process(pid_t pid, pr_info_handle_t *p, int priv, int *gret) argument
[all...]
/illumos-gate/usr/src/cmd/truss/
H A Dmain.c56 * The user can trace individual threads by using the 'pid/1,3-6,8-' syntax.
57 * This structure keeps track of pid/lwp specifications. If there are no LWPs
61 pid_t pid; member in struct:proc_set
460 "\t[-o outfile] command | -p pid[/lwps] ...\n");
630 "%s: cannot fork to control process, pid# %d\n",
631 command, (int)set->pid);
1850 pid_t pid = Pstatus(Proc)->pr_pid; local
1855 pid != pri->pparam.pid ||
1861 s += sprintf(s, "%d", (int)pid);
2235 pid_t pid = -1; local
2265 pid_t pid = Pstatus(Proc)->pr_pid; local
2387 control(private_t *pri, pid_t pid) argument
2525 release(private_t *pri, pid_t pid) argument
2658 pid_t pid; local
[all...]
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_input.c2193 sock_downcalls_t *z, cred_t *cr, pid_t pid, sock_upcalls_t **ignored)
2202 pid_t pid)
2192 tcp_dummy_newconn(sock_upper_handle_t x, sock_lower_handle_t y, sock_downcalls_t *z, cred_t *cr, pid_t pid, sock_upcalls_t **ignored) argument
2201 tcp_dummy_connected(sock_upper_handle_t x, sock_connid_t y, cred_t *cr, pid_t pid) argument
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/dns-sd/
H A Ddns-sd.c1649 pid_t pid = getpid(); local
1650 Opaque16 registerPort = { { pid >> 8, pid & 0xFF } };
1660 pid_t pid = getpid(); local
1661 Opaque16 registerPort = { { pid >> 8, pid & 0xFF } };
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_brand.c163 * indicating whether this process currently has that pid: if so,
169 pid_t pid; local
181 B_S10_PIDINFO, &pid, &zone_init_pid)) != 0) {
182 brand_abort(err, "Failed to get init's pid");
186 * Note that we need to be cautious with the pid we get back--
188 * we might fork(2). So we keep zone_init_pid and toss the pid
191 if (pid == zone_init_pid)
1840 * Cache the pid of the zone's init process and determine if
/illumos-gate/usr/src/lib/libdns_sd/common/
H A Ddnssd_clientstub.c1207 DNSServiceErrorType DNSSD_API DNSServiceGetPID(const uint16_t srcport, int32_t *pid) argument
1224 if (read_all(tmp->sockfd, (char*)pid, sizeof(int32_t)) < 0)
1772 DNSServiceErrorType DNSSD_API DNSServiceCreateDelegateConnection(DNSServiceRef *sdRef, int32_t pid, uuid_t uuid) argument
1784 // Only one of the two options can be set. If pid is zero, uuid is used.
1785 // If both are specified only pid will be used. We send across the pid
1798 if (pid && setsockopt((*sdRef)->sockfd, SOL_SOCKET, SO_DELEGATED, &pid, sizeof(pid)) == -1)
1800 syslog(LOG_WARNING, "dnssdclientstub: Could not setsockopt() for PID[%d], no entitlements or process(pid) invali
1831 DNSServiceCreateDelegateConnection(DNSServiceRef *sdRef, int32_t pid, uuid_t uuid) argument
[all...]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_aggregate.c329 uint64_t pid = data[0]; local
337 if ((P = dt_proc_grab(dtp, pid, PGRAB_RDONLY | PGRAB_FORCE, 0)) == NULL)
352 uint64_t pid = data[0]; local
360 if ((P = dt_proc_grab(dtp, pid, PGRAB_RDONLY | PGRAB_FORCE, 0)) == NULL)
H A Ddt_cc.c1657 * Both kernel and pid based providers are allowed to have names
1659 * a pid and that we may need to dynamically create probes for
1816 pid_t pid; local
1883 if ((pid = fork1()) == -1) {
1890 if (pid == 0) {
1897 (int)pid);
1898 } while (waitpid(pid, &wstat, 0) == -1 && errno == EINTR);
H A Ddt_consume.c1335 pid_t pid; local
1340 pid = (pid_t)*pc++;
1355 * determining <symbol, offset> from <pid, address>. For now, if
1359 P = dt_proc_grab(dtp, pid, PGRAB_RDONLY | PGRAB_FORCE, 0);
1459 uint64_t pid = ((uint64_t *)addr)[0]; local
1469 if ((P = dt_proc_grab(dtp, pid,
1486 } while ((len = dtrace_uaddr2str(dtp, pid, pc, s, n)) > n);
1495 uint64_t pid = ((uint64_t *)addr)[0]; local
1511 P = dt_proc_grab(dtp, pid, PGRAB_RDONLY | PGRAB_FORCE, 0);
/illumos-gate/usr/src/uts/common/c2/
H A Daudit.c1686 pid_t pid; local
1723 pid = p->p_pid;
1732 AUDIT_SETPROC_GENERIC(&(u_ad), cr, ainfo, pid);
2094 boolean_t active, int error, pid_t pid)
2198 ((cred != NULL) ? cred : CRED()), ainfo, kctx, pid);
2093 audit_pf_policy(int cmd, cred_t *cred, netstack_t *ns, char *tun, boolean_t active, int error, pid_t pid) argument
/illumos-gate/usr/src/lib/libproc/common/
H A DPcontrol.h137 lwpsinfo_t lwp_psinfo; /* /proc/<pid>/lwp/<lwpid>/lwpsinfo data */
138 lwpstatus_t lwp_status; /* /proc/<pid>/lwp/<lwpid>/lwpstatus data */
140 gwindows_t *lwp_gwins; /* /proc/<pid>/lwp/<lwpid>/gwindows data */
141 prxregset_t *lwp_xregs; /* /proc/<pid>/lwp/<lwpid>/xregs data */
142 int64_t *lwp_asrs; /* /proc/<pid>/lwp/<lwpid>/asrs data */
207 pid_t pid; /* process-ID */ member in struct:ps_prochandle
211 int asfd; /* /proc/<pid>/as filedescriptor */
212 int ctlfd; /* /proc/<pid>/ctl filedescriptor */
213 int statfd; /* /proc/<pid>/status filedescriptor */
214 int agentctlfd; /* /proc/<pid>/lw
[all...]
H A DPcore.c61 * ability to examine /proc/<pid>/ files.
406 P->pid = P->status.pr_pid;
1285 "pid=%d uid=%d zone=%d ctid=%d",
2322 P->pid = (pid_t)-1;
2548 size_t tcount, pid; local
2555 pid = P->status.pr_pid;
2562 * In the case we don't have a valid psinfo (i.e. pid is
2564 * lowest pid count is the first thread (what if the
2565 * next thread wraps the pid around?)
2568 ((pid
[all...]
/illumos-gate/usr/src/lib/libpicltree/
H A Dpicltree.c588 pid_t pid = GET_PID(hdl); local
593 if ((pid != picld_pid) || (hash_val >= picl_hdl_hi) ||
607 pid_t pid = GET_PID(hdl); local
612 if ((pid != picld_pid) || (hash_val >= ptree_hdl_hi) ||
/illumos-gate/usr/src/cmd/ps/
H A Dps.c174 { "pid", "PID", 5, 5 },
263 static pid_t *pid = NULL; /* for p option */ variable
407 * calculate width of pid fields based on configured MAXPID
593 pid = Realloc(pid,
596 pid[npid++] = id;
891 (void) qsort(pid, npid, sizeof (pid_t), pidcmp);
895 if (i >= 1 && pid[i] == pid[i - 1])
897 (void) sprintf(pname, "%d", (int)pid[
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Droute.c296 static pid_t pid; variable
456 pid = getpid();
2527 } while (l > 0 && (rtm.rtm_seq != seq || rtm.rtm_pid != pid));
2632 (void) printf("pid: %ld, seq %d, errno %d, flags:",
/illumos-gate/usr/src/cmd/mdb/common/modules/dtrace/
H A Ddtrace.c2572 pid_t pid = (pid_t)wsp->walk_addr; local
2586 if ((proc = mdb_pid2proc(pid, NULL)) == NULL) {
2587 mdb_warn("PID 0t%d not found\n", pid);
/illumos-gate/usr/src/cmd/ed/
H A Ded.c1507 pid_t pid, rpid; local
1579 if ((pid = fork()) == 0) {
1587 while ((rpid = wait(&retcode)) != pid && rpid != (pid_t)-1);
/illumos-gate/usr/src/cmd/find/
H A Dfind.c1221 pid_t pid, pid1; local
1236 if ((pid = fork()) == -1) {
1242 if (pid != 0) {
1254 } while (rc != pid);
1439 pid_t pid; /* pid used by cmdopen() */ member in struct:__anon448
1476 switch (cmdproc[proc].pid = fork()) {
1530 pid_t p, pid; local
1539 pid = cmdproc[i].pid;
[all...]
/illumos-gate/usr/src/cmd/fs.d/
H A Ddf.c865 pid_t pid; local
925 pid = fork();
927 if (pid == -1) {
930 } else if (pid == 0) {
945 pid_t wpid = waitpid(pid, &status, 0);

Completed in 294 milliseconds

<<2122232425