Lines Matching refs:pid
91 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)
168 /* pid contains type and flavor contains typeinfo */
169 return(proc_listpids(pid, flavor, buffer, buffersize, retval));
171 return(proc_pidinfo(pid, flavor, arg, buffer, buffersize, retval));
173 return(proc_pidfdinfo(pid, flavor, (int)arg, buffer, buffersize, retval));
177 return(proc_setcontrol(pid, flavor, arg, buffer, buffersize, retval));
179 return(proc_pidfileportinfo(pid, flavor, (mach_port_name_t)arg, buffer, buffersize, retval));
181 return(proc_terminate(pid, retval));
183 return(proc_dirtycontrol(pid, flavor, arg, retval));
952 proc_pidinfo(int pid, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, int32_t * retval)
1001 if (pid == 0)
1029 if ((p = proc_find(pid)) == PROC_NULL) {
1056 p = proc_find(pid);
1059 p = proc_find_zombref(pid);
1176 p = proc_find(pid);
1402 proc_pidfdinfo(int pid, int flavor, int fd, user_addr_t buffer, uint32_t buffersize, int32_t * retval)
1444 if ((p = proc_find(pid)) == PROC_NULL) {
1649 proc_pidfileportinfo(int pid, int flavor, mach_port_name_t name,
1678 if ((p = proc_find(pid)) == PROC_NULL) {
1729 proc_setcontrol(int pid, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, __unused int32_t * retval)
1738 if (pid != pself->p_pid)
1841 proc_dirtycontrol(int pid, int flavor, uint64_t arg, int32_t *retval) {
1850 target_p = proc_find(pid);
1859 if (pid == selfpid) {
1882 memorystatus_on_track_dirty(pid, TRUE);
1934 memorystatus_on_dirty(pid, pcontrol ? TRUE : FALSE);
1983 proc_terminate(int pid, int32_t *retval)
1992 AUDIT_ARG(pid, pid);
1996 if (pid <= 0 || retval == NULL) {
2000 if ((p = proc_find(pid)) == NULL) {