| /xnu-8020.101.4/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() 319 pid_t pid = getpid(); in proc_current_thread_schedinfo() 374 proc_track_dirty(pid_t pid, uint32_t flags) in proc_track_dirty() 384 proc_set_dirty(pid_t pid, bool dirty) in proc_set_dirty() 394 proc_get_dirty(pid_t pid, uint32_t *flags) in proc_get_dirty() 413 proc_clear_dirty(pid_t pid, uint32_t flags) in proc_clear_dirty() 423 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-8020.101.4/bsd/sys/ |
| H A D | proc_internal.h | 146 pid_t s_ttypgrpid; /* (SL) tty's pgrp id */ 148 pid_t s_sid; /* (C) Session ID */ 199 pid_t pg_id; /* group ID (static) */ 276 pid_t p_ppid; /* process's parent pid number */ 277 …pid_t p_original_ppid; /* process's original parent pid number, doesn't change if… 278 pid_t p_pgrpid; /* process group id of the process (LL)*/ 288 pid_t p_pid; /* Process identifier for proc_find. (static)*/ 326 pid_t p_oppid; /* Save parent pid during ptrace. XXX */ 347 pid_t si_pid; /* (PL) */ 387 pid_t p_contproc; /* last PID to send us a SIGCONT (PL) */ [all …]
|
| 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 | 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 | 249 pid_t wait(int *) __DARWIN_ALIAS_C(wait); 250 pid_t waitpid(pid_t, int *, int) __DARWIN_ALIAS_C(waitpid); 255 pid_t wait3(int *, int, struct rusage *); 256 pid_t wait4(pid_t, int *, int, struct rusage *);
|
| 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 | 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 | 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);
|
| H A D | fasttrap_impl.h | 80 pid_t ftpc_pid; /* process ID for this proc */ 88 pid_t ftp_pid; /* process ID for this prov */ 121 pid_t ftp_pid; /* pid for this probe */ 143 pid_t ftt_pid; /* pid of tracepoint */
|
| H A D | kern_memorystatus_freeze.h | 119 int memorystatus_set_process_is_freezable(pid_t pid, boolean_t is_freezable); 120 int memorystatus_get_process_is_freezable(pid_t pid, int *is_freezable); 123 errno_t memorystatus_get_process_is_frozen(pid_t pid, int *is_freezable); 250 pid_t fp_pid;
|
| /xnu-8020.101.4/tests/vm/ |
| H A D | memorystatus_sort_test.c | 25 pid_t pids[kNumProcsInCoalition]; // An array of pids in this coalition. Owned by this struct. 26 …pid_t expected_order[kNumProcsInCoalition]; // An array of pids in this coalition in proper sorted… 35 static pid_t children_pids[kMaxChildrenProcs]; 51 static void place_proc_in_band(pid_t pid, int band); 88 static pid_t 138 coalition.expected_order, kNumProcsInCoalition * sizeof(pid_t)); 161 __block pid_t pid; 177 pid_t expected_order[kNumChildren] = {0}; 201 static pid_t 206 pid_t pid; in launch_proc_in_coalition() [all …]
|
| /xnu-8020.101.4/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() 404 (void)set_memorystatus_vm_map_fork_pidwatch((pid_t)0); in memorystatus_vm_map_fork_parent() 418 (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 | task_policy.c | 85 pid_t pid = 0; 115 pid_t pid = 0; 145 pid_t pid = 0; 228 pid_t pid = 0; 258 pid_t pid = 0; 288 pid_t pid = 0; 375 pid_t pid = 0; 405 pid_t pid = 0; 435 pid_t pid = 0; 518 pid_t pid = 0; [all …]
|
| H A D | memorystatus_freeze_test.c | 73 static pid_t child_pid = -1; 76 void move_to_idle_band(pid_t); 137 get_rprvt(pid_t pid) 257 move_to_idle_band(pid_t pid) 391 pid_t rc = waitpid(child_pid, &status, 0); 555 static pid_t 558 pid_t pid; 587 freeze_process(pid_t pid) 675 pid_t rc = waitpid(child_pid, &status, 0); 767 is_proc_in_frozen_list(pid_t pid, char* name, size_t name_len) [all …]
|
| /xnu-8020.101.4/bsd/net/ |
| H A D | pktap.h | 112 pid_t pth_pid; /* process ID */ 117 pid_t pth_epid; /* effective process ID */ 167 pid_t pth_pid; /* process ID */ 168 pid_t pth_e_pid; /* effective process ID */ 248 pid_t, const char *, pid_t, const char *, kern_packet_t, const void *, size_t, 251 pid_t, const char *, pid_t, const char *, kern_packet_t, const void *, size_t,
|
| H A D | content_filter.h | 96 pid_t cfs_pid; 97 pid_t cfs_e_pid; 143 pid_t pid; 144 pid_t effective_pid; 222 pid_t cfs_pid; 223 pid_t cfs_e_pid; 407 pid_t cfs_pid; 408 pid_t cfs_e_pid;
|
| /xnu-8020.101.4/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 | 58 pid_t pt_pid; 59 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-8020.101.4/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 …]
|
| /xnu-8020.101.4/bsd/skywalk/packet/ |
| H A D | pbufpool_var.h | 157 pid_t); 159 struct __kern_quantum *, pid_t); 160 extern void pp_insert_upp_batch(struct kern_pbufpool *pp, pid_t pid, 167 extern void pp_purge_upp(struct kern_pbufpool *, pid_t); 171 pid_t);
|