| /xnu-11215/bsd/sys/ |
| H A D | proc.h | 239 extern proc_t kernproc; 296 extern proc_t proc_self(void); 298 extern int proc_rele(proc_t p); 300 extern int proc_pid(proc_t); 302 extern int proc_ppid(proc_t); 346 extern int proc_tbe(proc_t); 371 pid_t proc_pgrpid(proc_t p); 379 pid_t proc_sessionid(proc_t p); 397 task_t proc_task(proc_t); 399 extern proc_t proc_parent(proc_t); [all …]
|
| H A D | proc_internal.h | 844 extern void p_reparentallchildren(proc_t old_proc, proc_t new_proc); 870 extern void proc_refdrain(proc_t); 871 extern proc_t proc_refdrain_will_exec(proc_t p); 903 extern proc_t proc_parentholdref(proc_t); 921 void proc_setregister(proc_t p); 922 void proc_resetregister(proc_t p); 926 thread_t proc_thread(proc_t); 929 int proc_dopcontrol(proc_t p); 932 void pth_proc_hashinit(proc_t); 933 void pth_proc_hashdelete(proc_t); [all …]
|
| H A D | kern_memorystatus.h | 583 extern int memorystatus_add(proc_t p, boolean_t locked); 611 extern int memorystatus_remove(proc_t p); 621 extern int memorystatus_on_terminate(proc_t p); 623 extern void memorystatus_on_suspend(proc_t p); 624 extern void memorystatus_on_resume(proc_t p); 625 extern void memorystatus_on_inactivity(proc_t p); 640 void proc_memstat_skip(proc_t p, boolean_t set); 646 void memorystatus_act_on_entitled_task_limit(proc_t p); 698 proc_t memorystatus_get_next_proc_locked(unsigned int *bucket_index, proc_t p, boolean_t search); 714 extern boolean_t memorystatus_is_foreground_locked(proc_t p); [all …]
|
| H A D | filedesc.h | 203 fdt_available_locked(proc_t p, int n); 240 fdt_next(proc_t p, int fd, bool only_settled); 266 fdt_prev(proc_t p, int fd, bool only_settled); 310 fdt_init(proc_t p); 325 fdt_destroy(proc_t p); 372 fdt_fork(struct filedesc *child_fdt, proc_t parent_p, struct vnode *uth_cdir, bool in_exec); 401 fdt_exec(proc_t p, struct ucred *p_cred, short posix_spawn_flags, thread_t thread, bool in_exec); 419 fdt_invalidate(proc_t p); 424 extern int dupfdopen(proc_t p, int indx, int dfd, int mode, int error); 425 extern int fdalloc(proc_t p, int want, int *result); [all …]
|
| H A D | pthread_shims.h | 79 void (*pth_proc_hashinit)(proc_t p); 80 void (*pth_proc_hashdelete)(proc_t p); 91 …int (*psynch_mutexwait)(proc_t p, user_addr_t mutex, uint32_t mgen, uint32_t ugen, uint64_t tid, … 92 …int (*psynch_mutexdrop)(proc_t p, user_addr_t mutex, uint32_t mgen, uint32_t ugen, uint64_t tid, … 98 …int (*psynch_rw_rdlock)(proc_t p, user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t… 99 …int (*psynch_rw_unlock)(proc_t p, user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t… 122 int (*workq_handle_stack_events)(proc_t p, thread_t th, vm_map_t map, 126 int (*workq_create_threadstack)(proc_t p, vm_map_t vmap, 129 int (*workq_destroy_threadstack)(proc_t p, vm_map_t vmap, 132 void (*workq_setup_thread)(proc_t p, thread_t th, vm_map_t map, [all …]
|
| H A D | file_internal.h | 246 fg_ref(proc_t proc, struct fileglob *fg); 281 fg_drop(proc_t p, struct fileglob *fg); 432 fp_get_ftype(proc_t p, int fd, file_type_t ftype, int err, struct fileproc **fpp); 460 fp_get_noref_locked(proc_t p, int fd); 486 fp_get_noref_locked_with_iocount(proc_t p, int fd); 534 int fp_tryswap(proc_t, int fd, struct fileproc *nfp); 540 int fp_guard_exception(proc_t p, int fd, struct fileproc *fp, u_int attribs); 564 int fileport_makefd(proc_t p, ipc_port_t port, fileproc_flags_t fp_flags, int *fd); 565 int dup2(proc_t p, kauth_cred_t p_cred, int from, int to, int *fd); 566 int close_nocancel(proc_t p, kauth_cred_t p_cred, int fd); [all …]
|
| H A D | fasttrap_impl.h | 38 #define proc_t struct proc /* Steer clear of the Darwin typedef for proc_t */ macro 181 extern void fasttrap_sigtrap(proc_t *, uthread_t, user_addr_t); 189 extern void fasttrap_tracepoint_retire(proc_t *p, fasttrap_tracepoint_t *tp); 194 extern int fasttrap_tracepoint_init(proc_t *, fasttrap_tracepoint_t *, 196 extern int fasttrap_tracepoint_install(proc_t *, fasttrap_tracepoint_t *); 197 extern int fasttrap_tracepoint_remove(proc_t *, fasttrap_tracepoint_t *); 217 #undef proc_t
|
| H A D | persona.h | 418 struct persona *proc_persona_get(proc_t p); 463 proc_has_persona(proc_t p) in proc_has_persona() 472 persona_id_from_proc(proc_t p) in persona_id_from_proc() 481 int persona_proc_adopt(proc_t p, struct persona *persona, kauth_cred_derive_t fn); 483 int persona_proc_drop(proc_t p); 494 proc_has_persona(__unused proc_t p) in proc_has_persona() 500 persona_id_from_proc(__unused proc_t p) in persona_id_from_proc()
|
| H A D | proc_info_private.h | 296 extern int proc_fdlist(proc_t p, struct proc_fdinfo *buf, size_t *count); 318 extern int pid_kqueue_extinfo(proc_t, struct kqueue * kq, user_addr_t buffer, 320 extern int pid_kqueue_udatainfo(proc_t p, struct kqueue *kq, uint64_t *buf, 322 extern int pid_kqueue_listdynamickqueues(proc_t p, user_addr_t ubuf, 324 extern int pid_dynamickqueue_extinfo(proc_t p, kqueue_id_t kq_id, 329 extern int fill_procworkqueue(proc_t, struct proc_workqueueinfo *);
|
| H A D | signalvar.h | 199 int setsigvec(proc_t, thread_t, int signum, struct __kern_sigaction *, boolean_t in_sigstart); 211 void psignal_try_thread(proc_t, thread_t, int signum); 212 void psignal_try_thread_with_reason(proc_t, thread_t, int, struct os_reason*); 213 void psignal_thread_with_reason(proc_t, thread_t, int, struct os_reason*); 219 int thread_issignal(proc_t p, thread_t th, sigset_t mask); 222 void psignal_vfork_with_reason(proc_t p, task_t new_task, thread_t thread,
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_memorystatus_internal.h | 283 _memstat_proc_is_aging(proc_t p) in _memstat_proc_is_aging() 289 _memstat_proc_is_tracked(proc_t p) in _memstat_proc_is_tracked() 295 _memstat_proc_is_dirty(proc_t p) in _memstat_proc_is_dirty() 301 _memstat_proc_can_idle_exit(proc_t p) in _memstat_proc_can_idle_exit() 314 _memstat_proc_is_managed(proc_t p) in _memstat_proc_is_managed() 320 _memstat_proc_is_frozen(proc_t p) in _memstat_proc_is_frozen() 326 _memstat_proc_is_suspended(proc_t p) in _memstat_proc_is_suspended() 346 _memstat_proc_set_resumed(proc_t p) in _memstat_proc_set_resumed() 363 _memstat_proc_is_elevated(proc_t p) in _memstat_proc_is_elevated() 465 proc_t last_p; [all …]
|
| H A D | kern_proc.c | 366 isinferior(proc_t p, proc_t t) in isinferior() 429 proc_t 749 proc_t 761 proc_t 795 proc_t 850 proc_t 958 proc_t 1253 proc_t 1393 proc_t pp = (proc_t)p; in proc_starttime_kdp() 1414 proc_t pp = (proc_t)p; in proc_archinfo_kdp() [all …]
|
| H A D | kern_prot.c | 217 getpgid(proc_t p, struct getpgid_args *uap, int32_t *retval) in getpgid() 219 proc_t pt; in getpgid() 257 getsid(proc_t p, struct getsid_args *uap, int32_t *retval) in getsid() 259 proc_t pt; in getsid() 484 setsid_internal(proc_t p) in setsid_internal() 573 proc_t targp = PROC_NULL; /* target process */ in setpgid() 658 proc_issetugid(proc_t p) in proc_issetugid() 1176 kern_settid(proc_t p, uid_t uid, gid_t gid) in kern_settid() 1668 set_security_token(proc_t p, struct ucred *my_cred) in set_security_token() 1699 proc_parent_audit_token(proc_t p, audit_token_t *token_out) in proc_parent_audit_token() [all …]
|
| H A D | process_policy.c | 118 proc_t target_proc = PROC_NULL; in process_policy() 120 proc_t curp = current_proc(); in process_policy() 269 proc_t curp = current_proc(); in handle_cpuuse() 371 proc_t proc, in handle_applifecycle() 448 proc_t target_proc, in handle_apptype() 509 proc_t target_proc, in handle_boost() 598 handle_tecs(int scope, int action, proc_t target_proc, uint64_t target_threadid) in handle_tecs() 632 proc_t target_proc = PROC_NULL; in proc_pidbackgrounded() 664 proc_t p = current_proc(); in proc_get_originatorbgstate() 708 proc_t p = (proc_t)bsdinfo; in proc_apply_resource_actions() [all …]
|
| H A D | kern_fork.c | 107 extern void dtrace_proc_fork(proc_t, proc_t, int); 164 proc_t forkproc(proc_t, cloneproc_flags_t); 168 proc_t child, 444 proc_t child_proc, in fork_create_child() 582 proc_t child_proc; in fork() 685 proc_t child_proc; in cloneproc() 813 forkproc_free(proc_t p) in forkproc_free() 926 proc_t 1234 proc_lock(proc_t p) in proc_lock() 1241 proc_unlock(proc_t p) in proc_unlock() [all …]
|
| H A D | kern_sig.c | 147 static void stop(proc_t, proc_t); 148 static int cansignal_nomac(proc_t, kauth_cred_t, proc_t, int); 149 int cansignal(proc_t, kauth_cred_t, proc_t, int); 172 proc_t curproc; 176 proc_t curproc; 1375 proc_t p; in kill() 1752 bool (^filter)(proc_t) = ^bool (proc_t p) { in pgsignal() 1781 proc_t p; in threadsignal() 2659 proc_t pp; in issignal_locked() 3034 stop(proc_t p, proc_t parent) in stop() [all …]
|
| H A D | kern_aio.c | 225 static void aio_proc_lock(proc_t procp); 340 aio_proc_lock(proc_t procp) in aio_proc_lock() 346 aio_proc_lock_spin(proc_t procp) in aio_proc_lock_spin() 405 aio_proc_unlock(proc_t procp) in aio_proc_unlock() 411 aio_proc_mutex(proc_t procp) in aio_proc_mutex() 553 _aio_close(proc_t p, int fd) in _aio_close() 792 _aio_exec(proc_t p) in _aio_exec() 811 _aio_exit(proc_t p) in _aio_exit() 1519 proc_t p = NULL; in aio_work_thread() 1797 aio_validate(proc_t p, aio_workq_entry *entryp) in aio_validate() [all …]
|
| H A D | proc_info.c | 230 proc_t pself = (proc_t)p; in get_dispatchqueue_offset_from_proc() 241 proc_t pself = (proc_t)p; in get_wq_quantum_offset_from_proc() 252 proc_t pself = (proc_t)p; in get_dispatchqueue_serialno_offset_from_proc() 263 proc_t pself = (proc_t)p; in get_dispatchqueue_label_offset_from_proc() 274 proc_t pself = (proc_t)p; in get_return_to_kernel_offset_from_proc() 2784 proc_t p; in proc_pidfdinfo() 3078 proc_t p; in proc_pidfileportinfo() 3438 proc_t p; in proc_terminate() 3765 proc_t p; in proc_pid_rusage() 3962 proc_t p; in proc_piddynkqueueinfo() [all …]
|
| H A D | tty_tty.c | 78 int cttyopen(dev_t dev, int flag, int mode, proc_t p); 81 int cttyioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, proc_t p); 82 int cttyselect(dev_t dev, int flag, void* wql, proc_t p); 83 static vnode_t cttyvp(proc_t p); 86 cttyopen(dev_t dev, int flag, __unused int mode, proc_t p) in cttyopen() 200 cttyioctl(__unused dev_t dev, u_long cmd, caddr_t addr, int flag, proc_t p) in cttyioctl() 235 cttyselect(__unused dev_t dev, int flag, void* wql, __unused proc_t p) in cttyselect() 254 cttyvp(proc_t p) in cttyvp()
|
| H A D | kern_shutdown.c | 113 static int sd_filt1(proc_t, void *); 114 static int sd_filt2(proc_t, void *); 115 static int sd_callback1(proc_t p, void * arg); 116 static int sd_callback2(proc_t p, void * arg); 411 sd_filt1(proc_t p, void * args) in sd_filt1() 413 proc_t self = current_proc(); in sd_filt1() 435 sd_callback1(proc_t p, void * args) in sd_callback1() 467 sd_filt2(proc_t p, void * args) in sd_filt2() 469 proc_t self = current_proc(); in sd_filt2() 489 sd_callback2(proc_t p, void * args) in sd_callback2() [all …]
|
| /xnu-11215/security/ |
| H A D | mac_process.c | 327 proc_t tracingp; in mac_proc_check_debug() 376 proc_t curp = current_proc(); in mac_proc_check_remote_thread_create() 377 proc_t proc; in mac_proc_check_remote_thread_create() 410 mac_proc_check_fork(proc_t curp) in mac_proc_check_fork() 518 mac_proc_check_mprotect(proc_t proc, in mac_proc_check_mprotect() 540 mac_proc_check_run_cs_invalid(proc_t proc) in mac_proc_check_run_cs_invalid() 670 proc_t curp = current_proc(); in mac_proc_check_suspend_resume() 690 mac_proc_check_ledger(proc_t curp, proc_t proc, int ledger_op) in mac_proc_check_ledger() 711 mac_proc_check_proc_info(proc_t curp, proc_t target, int callnum, int flavor) in mac_proc_check_proc_info() 732 mac_proc_check_get_cs_info(proc_t curp, proc_t target, unsigned int op) in mac_proc_check_get_cs_info() [all …]
|
| H A D | mac_framework.h | 158 proc_t proc, void *macextensions) __result_use_check; 310 int mac_proc_check_proc_info(proc_t curp, proc_t target, int callnum, int flavor) __result_use_… 311 int mac_proc_check_get_cs_info(proc_t curp, proc_t target, unsigned int op) __result_use_check; 312 int mac_proc_check_set_cs_info(proc_t curp, proc_t target, unsigned int op) __result_use_check; 322 int mac_proc_check_ledger(proc_t curp, proc_t target, int op) __result_use_check; 326 int mac_proc_check_mprotect(proc_t proc, 329 void mac_proc_notify_cs_invalidated(proc_t proc); 330 int mac_proc_check_sched(proc_t proc, proc_t proc2) __result_use_check; 340 int mac_proc_check_signal(proc_t proc1, proc_t proc2, 345 int mac_proc_check_wait(proc_t proc1, proc_t proc2) __result_use_check; [all …]
|
| /xnu-11215/bsd/dev/dtrace/ |
| H A D | dtrace_subr.c | 52 #define proc_t struct proc /* Steer clear of the Darwin typedef for proc_t */ macro 65 void (*dtrace_helpers_cleanup)(proc_t *); 66 void (*dtrace_helpers_fork)(proc_t *, proc_t *); 76 void (*dtrace_fasttrap_fork_ptr)(proc_t *, proc_t *); 77 void (*dtrace_fasttrap_exec_ptr)(proc_t *); 78 void (*dtrace_fasttrap_exit_ptr)(proc_t *); 90 dtrace_fasttrap_fork(proc_t *p, proc_t *cp) in dtrace_fasttrap_fork() 121 void (*dtrace_proc_waitfor_exec_ptr)(proc_t*) = NULL; 124 dtrace_proc_get_execpath(proc_t *p, char *buffer, int *maxlen) in dtrace_proc_get_execpath() 154 dtrace_proc_exec_notification(proc_t *p) { in dtrace_proc_exec_notification() [all …]
|
| /xnu-11215/bsd/skywalk/nexus/ |
| H A D | nexus_ioctl.h | 47 extern int nxioctl(struct nxctl *, u_long, caddr_t, proc_t); 48 extern int nxioctl_add_traffic_rule_inet(struct nxctl *, caddr_t, proc_t); 49 extern int nxioctl_remove_traffic_rule(struct nxctl *, caddr_t, proc_t); 50 extern int nxioctl_get_traffic_rules(struct nxctl *, caddr_t, proc_t);
|
| /xnu-11215/bsd/pthread/ |
| H A D | pthread_shims.c | 324 pth_proc_hashinit(proc_t p) in pth_proc_hashinit() 330 pth_proc_hashdelete(proc_t p) in pth_proc_hashdelete() 406 psynch_mutexwait(proc_t p, struct psynch_mutexwait_args *uap, uint32_t *retval) in psynch_mutexwait() 412 psynch_mutexdrop(proc_t p, struct psynch_mutexdrop_args *uap, uint32_t *retval) in psynch_mutexdrop() 418 psynch_cvbroad(proc_t p, struct psynch_cvbroad_args *uap, uint32_t *retval) in psynch_cvbroad() 424 psynch_cvsignal(proc_t p, struct psynch_cvsignal_args *uap, uint32_t *retval) in psynch_cvsignal() 430 psynch_cvwait(proc_t p, struct psynch_cvwait_args * uap, uint32_t * retval) in psynch_cvwait() 436 psynch_cvclrprepost(proc_t p, struct psynch_cvclrprepost_args * uap, int *retval) in psynch_cvclrprepost() 448 psynch_rw_rdlock(proc_t p, struct psynch_rw_rdlock_args * uap, uint32_t * retval) in psynch_rw_rdlock() 454 psynch_rw_unlock(proc_t p, struct psynch_rw_unlock_args *uap, uint32_t *retval) in psynch_rw_unlock() [all …]
|