Searched refs:pid (Results 26 - 50 of 122) sorted by relevance

12345

/darwin-on-arm/xnu/bsd/sys/
H A Dproc.h107 pid_t p_oppid; /* Save parent pid during ptrace. XXX */
235 /* this routine returns the pid of the current process */
237 /* this routine returns the pid of the parent of the current process */
239 /* this routine returns sends a signal signum to the process identified by the pid */
240 extern void proc_signal(int pid, int signum);
241 /* this routine checks whether any signal identified by the mask are pending in the process identified by the pid. The check is on all threads of the process. */
242 extern int proc_issignal(int pid, sigset_t mask);
249 void proc_name(int pid, char * buf, int size);
253 /* find a process with a given pid. This comes with a reference which needs to be dropped by proc_rele */
254 extern proc_t proc_find(int pid);
[all...]
H A Dfasttrap_impl.h51 * Each Solaris process can have multiple providers -- the pid provider as
93 fasttrap_provider_type_t ftp_provider_type; /* type of this provider (usdt, pid, objc, oneshot) */
94 char ftp_name[DTRACE_PROVNAMELEN]; /* prov name (w/o the pid) */
124 pid_t ftp_pid; /* pid for this probe */
145 pid_t ftt_pid; /* pid of tracepoint */
193 #define FASTTRAP_TPOINTS_INDEX(pid, pc) \
194 (((pc) / sizeof (fasttrap_instr_t) + (pid)) & fasttrap_tpoints.fth_mask)
/darwin-on-arm/xnu/bsd/netinet/
H A Din_tclass.c94 find_tfp_by_pid(pid_t pid) argument
99 if (tfp->tfp_pid == pid)
126 pid_t pid = proc_pid(p); local
134 if ((tfp->tfp_pid == pid) || (tfp->tfp_pid == -1 &&
217 alloc_tclass_for_proc(pid_t pid, const char *pname) argument
221 if (pid == -1 && pname == NULL)
228 tfp->tfp_pid = pid;
230 * Add per pid entries before per proc name so we can find
233 if (pid != -1) {
257 pid_t pid local
354 pid_t pid = so_tcdbg->so_tcdbg_pid; local
405 pid_t pid = so_tcdbg->so_tcdbg_pid; local
458 pid_t pid = so_tcdbg->so_tcdbg_pid; local
[all...]
/darwin-on-arm/xnu/bsd/kern/
H A Dvm_pressure.c189 static struct knote * vm_find_knote_from_pid(pid_t pid) { argument
199 if (current_pid == pid) {
212 /* If memory is low, and there's a pid to target... */
225 VM_PRESSURE_DEBUG(0, "[vm_pressure] can't find candidate pid\n");
230 VM_PRESSURE_DEBUG(1, "[vm_pressure] sending event to pid %d, free pages %d\n", kn->kn_kq->kq_p->p_pid, memorystatus_available_pages);
246 boolean_t vm_dispatch_pressure_note_to_pid(pid_t pid) { argument
251 kn = vm_find_knote_from_pid(pid);
253 KNOTE(&vm_pressure_klist, pid);
305 VM_PRESSURE_DEBUG(1, "[vm_pressure] task_info for pid %d failed with %d\n", p->p_pid, kr);
324 VM_PRESSURE_DEBUG(0, "[vm_pressure] threshold failed for pid
[all...]
H A Dkern_prot.c228 * Description: Get an arbitary pid's process group id
230 * Parameters: uap->pid The target pid
248 if (uap->pid == 0)
251 if ((pt = proc_find(uap->pid)) == 0)
265 * Description: Get an arbitary pid's session leaders process group ID
267 * Parameters: uap->pid The target pid
286 if (uap->pid == 0)
289 if ((pt = proc_find(uap->pid))
[all...]
H A Dproc_info.c91 int proc_info_internal(int callnum, int pid, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, int32_t * retval);
95 int proc_pidinfo(int pid, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, int32_t * retval);
96 int proc_pidfdinfo(int pid, int flavor,int fd, user_addr_t buffer, uint32_t buffersize, int32_t * retval);
98 int proc_setcontrol(int pid, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, int32_t * retval);
99 int proc_pidfileportinfo(int pid, int flavor, mach_port_name_t name, user_addr_t buffer, uint32_t buffersize, int32_t *retval);
100 int proc_dirtycontrol(int pid, int flavor, uint64_t arg, int32_t * retval);
101 int proc_terminate(int pid, int32_t * retval);
158 return(proc_info_internal(uap->callnum, uap->pid, uap->flavor, uap->arg, uap->buffer, uap->buffersize, retval));
163 proc_info_internal(int callnum, int pid, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, int32_t * retval) argument
168 /* pid contain
952 proc_pidinfo(int pid, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, int32_t * retval) argument
1402 proc_pidfdinfo(int pid, int flavor, int fd, user_addr_t buffer, uint32_t buffersize, int32_t * retval) argument
1649 proc_pidfileportinfo(int pid, int flavor, mach_port_name_t name, user_addr_t buffer, uint32_t buffersize, int32_t *retval) argument
1729 proc_setcontrol(int pid, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, __unused int32_t * retval) argument
1841 proc_dirtycontrol(int pid, int flavor, uint64_t arg, int32_t *retval) argument
1983 proc_terminate(int pid, int32_t *retval) argument
[all...]
H A Dkern_proc.c178 static int csops_internal(pid_t pid, int ops, user_addr_t uaddr, user_size_t usersize, user_addr_t uaddittoken);
333 proc_find(int pid) argument
335 return(proc_findinternal(pid, 0));
339 proc_findinternal(int pid, int locked) argument
347 p = pfind_locked(pid);
433 proc_find_zombref(int pid) argument
440 p = pfind_locked(pid);
640 proc_name(int pid, char * buf, int size) argument
644 if ((p = proc_find(pid)) != PROC_NULL) {
676 proc_signal(int pid, in argument
687 proc_issignal(int pid, sigset_t mask) argument
859 pfind_locked(pid_t pid) argument
887 pzfind(pid_t pid) argument
1439 proc_core_name(const char *name, uid_t uid, pid_t pid, char *cf_name, size_t cf_name_len) argument
1736 csops_internal(pid_t pid, int ops, user_addr_t uaddr, user_size_t usersize, user_addr_t uaudittoken) argument
2834 proc_getpcontrol(int pid, int * pcontrolp) argument
2900 proc_resetpcontrol(int pid) argument
[all...]
H A Dmach_process.c127 AUDIT_ARG(pid, uap->pid);
190 if (uap->pid < 2) {
197 if ((t = proc_find(uap->pid)) == NULL)
/darwin-on-arm/xnu/bsd/netat/
H A Datp_open.c199 atp->atp_pid = gref->pid;
230 pid_t pid; local
272 pid = (pid_t)atp_pidM[socket];
275 if (pid)
276 ddp_notify_nbp(socket, pid, DDP_ATP);
H A Dasp.h156 int pid; /* process id, must be the second entry */ member in struct:__anon330
179 int pid; /* process id, must be the second entry */ member in struct:asp_scb
H A Dat_pcb.h104 int pid; member in struct:atpcb
H A Dadsp_stream.c363 adsp_pidM[v] = sp->pid;
548 adsp_pidM[sVal] = sp->pid;
559 int pid = 0; local
561 dPrintf(D_M_ADSP, D_L_TRACE, ("adspDeassignSocket: pid=%d,s=%d\n",
562 sp->pid, sp->localSocket));
578 pid = adsp_pidM[sVal];
585 return pid ? 0 : 1;
H A Dadsp_Options.c98 sp->pid = pb->u.optionParams.newPID;
H A Dnbp.h133 int pid; member in struct:_nve_
/darwin-on-arm/xnu/osfmk/kperf/
H A Dpet.c195 /* convert the pid list into a task list */
198 int pid = pidv[i]; local
199 if( pid == -1 )
202 taskv[i] = chudxnu_task_for_pid(pid);
220 /* check if we're filtering on pid */
/darwin-on-arm/xnu/bsd/security/audit/
H A Daudit_bsm_token.c591 pid_t pid, au_asid_t sid, au_tid_t *tid)
604 ADD_U_INT32(dptr, pid);
614 pid_t pid, au_asid_t sid, au_tid_t *tid)
628 ADD_U_INT32(dptr, pid);
638 pid_t pid, au_asid_t sid, au_tid_t *tid)
641 return (au_to_process32(auid, euid, egid, ruid, rgid, pid, sid,
661 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid)
681 ADD_U_INT32(dptr, pid);
695 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid)
718 ADD_U_INT32(dptr, pid);
590 au_to_process32(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid) argument
613 au_to_process64(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid) argument
637 au_to_process(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid) argument
660 au_to_process32_ex(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) argument
694 au_to_process64_ex(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) argument
733 au_to_process_ex(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) argument
961 au_to_subject32(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid) argument
984 au_to_subject64(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid) argument
1008 au_to_subject(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid) argument
1031 au_to_subject32_ex(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) argument
1065 au_to_subject64_ex(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) argument
1102 au_to_subject_ex(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) argument
[all...]
/darwin-on-arm/xnu/tools/tests/libMicro/apple/
H A Dlmbench_select_tcp.c105 pid_t pid; member in struct:__anon1368
150 int pid; local
153 pid = getpid();
154 ts->pid = 0;
178 switch(ts->pid = fork()) {
181 while (pid == getppid()) {
H A Dlb_mmtest.c101 long pid; member in struct:__anon1350
330 long pid; local
433 pid = fork();
434 switch (pid) {
442 ts->pid = pid;
509 kill(ts->pid, SIGKILL);
/darwin-on-arm/xnu/bsd/net/
H A Dif_pflog.h87 pid_t pid; member in struct:pfloghdr
H A Dif_pppvar.h137 struct ppp_softc *pppalloc(pid_t pid);
/darwin-on-arm/xnu/osfmk/i386/
H A Dbsd_i386_native.c125 void thread_set_parent(thread_t parent, int pid);
128 thread_set_parent(thread_t parent, int pid) argument
137 iss64->rax = pid;
145 iss32->eax = pid;
/darwin-on-arm/xnu/bsd/netkey/
H A Dkey.h105 u_int32_t pid,
H A Dkeydb.h102 pid_t pid; /* message's pid */ member in struct:secasvar
/darwin-on-arm/xnu/tools/tests/libMicro/
H A Dpipe.c166 pid_t pid; local
195 pid = fork();
196 switch (pid) {
204 ts->ts_child = pid;
/darwin-on-arm/xnu/iokit/Kernel/
H A DIOStatistics.cpp1071 stats->userClientCalls[procs].pid = processEntry->pid;
1083 int32_t pid = -1; local
1114 pid = 0;
1116 pid = pid*10 + (*ptr - '0');
1122 pid = -1;
1129 if (-1 == pid)
1137 if (entry->pid == pid) {
[all...]

Completed in 104 milliseconds

12345