| /xnu-12377.61.12/libsyscall/wrappers/libproc/ |
| H A D | libproc_internal.h | 39 int proc_setcpu_percentage(pid_t pid, int action, int percentage) __OSX_AVAILABLE_STARTING(__MAC_10… 40 int proc_clear_cpulimits(pid_t pid) __OSX_AVAILABLE_STARTING(__MAC_10_12_2, __IPHONE_5_0); 52 int proc_setcpu_deadline(pid_t pid, int action, uint64_t deadline) __OSX_AVAILABLE_STARTING(__MAC_N… 53 int proc_setcpu_percentage_withdeadline(pid_t pid, int action, int percentage, uint64_t deadline) _… 93 int proc_clear_vmpressure(pid_t pid); 114 int proc_disable_apptype(pid_t pid, int apptype); 115 int proc_enable_apptype(pid_t pid, int apptype); 140 int proc_set_cpumon_defaults(pid_t pid) __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0); 141 int proc_set_cpumon_params(pid_t pid, int percentage, int interval) __OSX_AVAILABLE_STARTING(__MAC_… 142 int proc_set_cpumon_params_fatal(pid_t pid, int percentage, int interval) __OSX_AVAILABLE_STARTING(… [all …]
|
| H A D | libproc.c | 42 … action, int policy, int policy_subtype, proc_policy_attribute_t * attrp, pid_t target_pid, uint64… 43 int proc_rlimit_control(pid_t pid, int flavor, void *arg); 76 proc_listpgrppids(pid_t pgrpid, void * buffer, int buffersize) in proc_listpgrppids() 88 proc_listchildpids(pid_t ppid, void * buffer, int buffersize) in proc_listchildpids() 327 pid_t pid = getpid(); in proc_current_thread_schedinfo() 382 proc_track_dirty(pid_t pid, uint32_t flags) in proc_track_dirty() 392 proc_set_dirty(pid_t pid, bool dirty) in proc_set_dirty() 402 proc_get_dirty(pid_t pid, uint32_t *flags) in proc_get_dirty() 421 proc_clear_dirty(pid_t pid, uint32_t flags) in proc_clear_dirty() 431 proc_terminate(pid_t pid, int *sig) in proc_terminate() [all …]
|
| H A D | libproc.h | 94 int proc_listpgrppids(pid_t pgrpid, void * buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_1… 95 int proc_listchildpids(pid_t ppid, void * buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10… 125 int proc_track_dirty(pid_t pid, uint32_t flags); 126 int proc_set_dirty(pid_t pid, bool dirty); 127 int proc_get_dirty(pid_t pid, uint32_t *flags); 128 int proc_clear_dirty(pid_t pid, uint32_t flags); 130 int proc_terminate(pid_t pid, int *sig);
|
| /xnu-12377.61.12/tests/vm/ |
| H A D | memorystatus_sort_test.c | 26 pid_t pids[NUM_PROCS_IN_COALITION]; // An array of pids in this coalition. Owned by this struct. 27 …pid_t expected_order[COAL_ORDER_NUM_PIDS]; // An array of pids in this coalition in proper sorted … 37 static pid_t children_pids[kMaxChildrenProcs]; 53 static void place_proc_in_band(pid_t pid, int band); 90 static pid_t 110 pids_str(pid_t *pids, int n_pids) in pids_str() 146 pid_t *expected_order, in sort_and_verify() 151 pid_t *actual_order; in sort_and_verify() 152 pid_t *original_expected_order; in sort_and_verify() 155 actual_order = malloc(sizeof(pid_t) * expected_order_len); in sort_and_verify() [all …]
|
| H A D | corpse_footprint.c | 45 static pid_t 49 pid_t child_pid; in spawn_munch() 77 static pid_t munch_pid = 0; 106 pid_t pid = spawn_munch(footprint);
|
| H A D | app_swap.c | 27 static pid_t 28 get_coalition_leader(pid_t p) in get_coalition_leader() 63 static pid_t child_pid = 0; 144 static pid_t 150 pid_t new_pid = 0; in spawn_coalition_leader() 182 pid_t leader_pid;
|
| /xnu-12377.61.12/tests/rm/ |
| H A D | coalition_info_pid_list.c | 68 static pid_t 74 pid_t new_pid = 0; in spawn_helper_in_coalition() 139 get_pid_list(uint64_t cid, pid_t *pids, int npids) in get_pid_list() 141 size_t size = npids * sizeof(pid_t); in get_pid_list() 145 return size / sizeof(pid_t); in get_pid_list() 150 check_contains_exactly_pids_or_zeros(pid_t *big_list, int big_list_npids, pid_t *small_list, int sm… in check_contains_exactly_pids_or_zeros() 186 pid_t pids[NPIDS]; 199 pid_t spawned_pids[NSPAWNED]; 218 pid_t *big_pid_list = calloc(COALITION_INFO_PID_LIST_MAX_PIDS * 2, sizeof(pid_t)); 226 pid_t pid = spawned_pids[j];
|
| /xnu-12377.61.12/tests/ |
| H A D | memorystatus_assertion_helpers.h | 30 set_priority(pid_t pid, int32_t priority, uint64_t user_data, boolean_t is_assertion_driven); 37 check_properties(pid_t pid, int32_t expected_priority, int32_t expected_limit_mb, uint64_t expected… 48 pid_t pid, 57 set_assertion_priority(pid_t pid, int32_t priority, uint64_t user_data); 64 relinquish_assertion_priority(pid_t pid, uint64_t user_data); 77 get_priority_props(pid_t pid, boolean_t verbose, int32_t *priority, int32_t *limit_mb, uint64_t *us…
|
| H A D | memorystatus_vm_map_fork.c | 89 set_memorystatus_vm_map_fork_pidwatch(pid_t pid) in set_memorystatus_vm_map_fork_pidwatch() 186 static pid_t 197 pid_t child_pid; in spawn_child_process() 221 test_child_process(pid_t child_pid, int *status, struct rusage *ru) in test_child_process() 224 pid_t got_pid; in test_child_process() 296 pid_t child_pid; in memorystatus_vm_map_fork_parent() 410 (void)set_memorystatus_vm_map_fork_pidwatch((pid_t)0); in memorystatus_vm_map_fork_parent() 424 (void)set_memorystatus_vm_map_fork_pidwatch((pid_t)0); in memorystatus_vm_map_fork_parent()
|
| H A D | prioritize_process_launch.c | 275 static pid_t 282 pid_t child_pid = 0; in posix_spawn_child_with_watch_ports() 317 pid_t pid; in workloop_cb_test_intransit() 354 pid_t pid; in workloop_cb_test_knote_kill() 388 static pid_t pid = 0; in workloop_cb_test_sync_bootstrap() 477 pid_t pid; 500 pid_t pid; 523 pid_t pid; 546 pid_t pid; 569 pid_t pid1, pid2; [all …]
|
| H A D | memorystatus_assertion_helpers.c | 11 set_priority(pid_t pid, int32_t priority, uint64_t user_data, boolean_t is_assertion_driven) in set_priority() 44 check_properties(pid_t pid, int32_t expected_priority, int32_t expected_limit_mb, uint64_t expected… in check_properties() 100 set_assertion_priority(pid_t pid, int32_t priority, uint64_t user_data) in set_assertion_priority() 106 relinquish_assertion_priority(pid_t pid, uint64_t user_data) in relinquish_assertion_priority() 113 pid_t pid, in set_memlimits() 149 get_priority_props(pid_t pid, boolean_t verbose, int32_t *priority, int32_t *limit_mb, uint64_t *us… in get_priority_props()
|
| H A D | arm_mte_launchd.c | 38 _does_pid_have_mte(pid_t pid) in _does_pid_have_mte() 60 pid_t pid = 1; 72 pid_t pid = 1;
|
| /xnu-12377.61.12/bsd/sys/ |
| H A D | msg.h | 128 pid_t msg_lspid; /* [XSI] pid of last msgsnd() */ 129 pid_t msg_lrpid; /* [XSI] pid of last msgrcv() */ 151 pid_t msg_lspid; /* [XSI] pid of last msgsnd() */ 152 pid_t msg_lrpid; /* [XSI] pid of last msgrcv() */ 187 pid_t msg_lspid; /* [XSI] pid of last msgsnd() */ 188 pid_t msg_lrpid; /* [XSI] pid of last msgrcv() */ 209 pid_t msg_lspid; /* [XSI] pid of last msgsnd() */ 210 pid_t msg_lrpid; /* [XSI] pid of last msgrcv() */ 227 pid_t msg_lspid; /* [XSI] pid of last msgsnd() */ 228 pid_t msg_lrpid; /* [XSI] pid of last msgrcv() */
|
| H A D | proc_internal.h | 146 pid_t s_ttypgrpid; /* (SL) tty's pgrp id */ 148 pid_t s_sid; /* (C) Session ID */ 201 pid_t pg_id; /* group ID (static) */ 278 pid_t p_ppid; /* process's parent pid number */ 279 pid_t p_pgrpid; /* process group id of the process (LL)*/ 286 pid_t p_sessionid; 290 pid_t p_pid; /* Process identifier for proc_find. (static)*/ 331 pid_t p_oppid; /* Save parent pid during ptrace. XXX */ 353 pid_t si_pid; /* (PL) */ 361 pid_t p_responsible_pid; /* pid responsible for this process */ [all …]
|
| H A D | lctx.h | 10 static __inline pid_t 11 getlcid(pid_t pid) in getlcid() 18 setlcid(pid_t pid, pid_t lcid) in setlcid()
|
| H A D | wait.h | 247 pid_t wait(int *) __DARWIN_ALIAS_C(wait); 248 pid_t waitpid(pid_t, int *, int) __DARWIN_ALIAS_C(waitpid); 253 pid_t wait3(int *, int, struct rusage *); 254 pid_t wait4(pid_t, int *, int, struct rusage *);
|
| H A D | shm_internal.h | 84 pid_t shm_lpid; /* PID of last shared memory op */ 85 pid_t shm_cpid; /* PID of creator */ 96 pid_t shm_lpid; /* PID of last shared memory op */ 97 pid_t shm_cpid; /* PID of creator */
|
| H A D | shm.h | 150 pid_t shm_lpid; /* [XSI] PID of last shared memory op */ 151 pid_t shm_cpid; /* [XSI] PID of creator */ 166 pid_t shm_lpid; /* [XSI] PID of last shared memory op */ 167 pid_t shm_cpid; /* [XSI] PID of creator */
|
| H A D | sfi.h | 92 int sfi_process_set_flags(pid_t pid, uint32_t flags); 94 int sfi_process_get_flags(pid_t pid, uint32_t *flags); 110 int __sfi_pidctl(uint32_t operation, pid_t pid, uint32_t sfi_flags, uint32_t *out_sfi_flags);
|
| /xnu-12377.61.12/bsd/net/ |
| H A D | pktap.h | 98 pid_t pth_pid; /* process ID */ 105 pid_t pth_epid; /* effective process ID */ 161 pid_t pth_pid; /* process ID */ 162 pid_t pth_e_pid; /* effective process ID */ 228 pid_t, const char *, pid_t, const char *, kern_packet_t, 232 pid_t, const char *, pid_t, const char *, kern_packet_t,
|
| H A D | content_filter.h | 96 pid_t cfs_pid; 97 pid_t cfs_e_pid; 98 pid_t cfs_r_pid; 132 pid_t pid; 133 pid_t effective_pid; 134 pid_t responsible_pid; 221 pid_t cfs_pid; 222 pid_t cfs_e_pid; 223 pid_t cfs_r_pid; 266 pid_t cfd_delegated_pid; [all …]
|
| /xnu-12377.61.12/bsd/skywalk/namespace/ |
| H A D | protons.h | 48 extern int protons_reserve(struct protons_token **ptp, pid_t pid, pid_t epid, 59 extern bool protons_token_has_matching_pid(struct protons_token *pt, pid_t pid, 60 pid_t epid);
|
| H A D | protons.c | 59 pid_t pt_pid; 60 pid_t pt_epid; 122 protons_token_has_matching_pid(struct protons_token *pt, pid_t pid, pid_t epid) in protons_token_has_matching_pid() 171 protons_reserve_locked(struct protons_token **ptp, pid_t pid, pid_t epid, in protons_reserve_locked() 213 protons_reserve(struct protons_token **ptp, pid_t pid, pid_t epid, in protons_reserve()
|
| /xnu-12377.61.12/tests/signals/ |
| H A D | signal_exit_reason.c | 78 audit_token_for_pid(pid_t pid, audit_token_t *token) in audit_token_for_pid() 157 pid_t child = fork(); in __test_exit_reason_abort() 177 pid_t child = fork(); in __test_exit_reason_external_signal() 193 pid_t child = fork(); in __test_exit_reason_delegate_signal() 217 pid_t child = fork(); in __test_exit_reason_delegate_terminate() 246 pid_t child = fork(); in __test_exit_reason_terminate() 272 pid_t child = fork(); in __test_exit_reason_signal_with_audittoken() 294 pid_t child = fork(); in __test_exit_reason_signal_with_audittoken_fail_bad_token() 315 pid_t child = fork(); in __test_exit_reason_delegated_signal_fail_bad_instigator_token() 332 pid_t child = fork(); in __test_exit_reason_signal_with_audittoken_fail_null_token() [all …]
|
| /xnu-12377.61.12/bsd/bsm/ |
| H A D | audit_record.h | 285 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid) 288 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid) 291 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid) 294 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) 297 uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, 301 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) 323 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid) 326 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid) 329 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid) 332 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) [all …]
|