Home
last modified time | relevance | path

Searched refs:pid_t (Results 1 – 25 of 322) sorted by relevance

12345678910>>...13

/xnu-11417.121.6/libsyscall/wrappers/libproc/
H A Dlibproc_internal.h39 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 Dlibproc.c42 … 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 Dlibproc.h94 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-11417.121.6/tests/vm/
H A Dmemorystatus_sort_test.c22 pid_t pids[kNumProcsInCoalition]; // An array of pids in this coalition. Owned by this struct.
23pid_t expected_order[kNumProcsInCoalition]; // An array of pids in this coalition in proper sorted…
32 static pid_t children_pids[kMaxChildrenProcs];
48 static void place_proc_in_band(pid_t pid, int band);
85 static pid_t
139 coalition.expected_order, kNumProcsInCoalition * sizeof(pid_t));
162 __block pid_t pid;
178 pid_t expected_order[kNumChildren] = {0};
202 static pid_t
207 pid_t pid; in launch_proc_in_coalition()
[all …]
H A Dapp_swap.c27 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;
H A Dentitlement_increased_memory_limit.c92 static pid_t
100 pid_t pid; in spawn_child_with_memlimit()
128 resume_child_and_verify_exit(pid_t pid) in resume_child_and_verify_exit()
130 pid_t rc; in resume_child_and_verify_exit()
162 pid_t pid;
213 pid_t pid;
262 pid_t pid;
/xnu-11417.121.6/tests/
H A Dmemorystatus_assertion_helpers.h30 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 Dsignal_exit_reason.c76 audit_token_for_pid(pid_t pid, audit_token_t *token) in audit_token_for_pid()
155 pid_t child = fork(); in __test_exit_reason_abort()
175 pid_t child = fork(); in __test_exit_reason_external_signal()
191 pid_t child = fork(); in __test_exit_reason_delegate_signal()
215 pid_t child = fork(); in __test_exit_reason_delegate_terminate()
243 pid_t child = fork(); in __test_exit_reason_terminate()
269 pid_t child = fork(); in __test_exit_reason_signal_with_audittoken()
291 pid_t child = fork(); in __test_exit_reason_signal_with_audittoken_fail_bad_token()
312 pid_t child = fork(); in __test_exit_reason_delegated_signal_fail_bad_instigator_token()
329 pid_t child = fork(); in __test_exit_reason_signal_with_audittoken_fail_null_token()
[all …]
H A Dmemorystatus_vm_map_fork.c89 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 Dprioritize_process_launch.c275 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 Dmemorystatus_assertion_helpers.c11 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 Dtest_utils.c32 pid_t
38 pid_t pid; in launch_background_helper()
66 set_process_memorystatus_managed(pid_t pid) in set_process_memorystatus_managed()
/xnu-11417.121.6/bsd/sys/
H A Dmsg.h128 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 Dproc_internal.h146 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 Dlctx.h10 static __inline pid_t
11 getlcid(pid_t pid) in getlcid()
18 setlcid(pid_t pid, pid_t lcid) in setlcid()
H A Dwait.h247 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 Dshm.h150 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 Dshm_internal.h84 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 Dsfi.h92 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 Dproc.h117 pid_t p_pid; /* Process identifier. */
118 pid_t p_oppid; /* Save parent pid during ptrace. XXX */
260 pid_t p_pid;
384 pid_t proc_selfpgrpid(void);
392 pid_t proc_pgrpid(proc_t p);
400 pid_t proc_sessionid(proc_t p);
439 extern int proc_pidbackgrounded(pid_t pid, uint32_t* state);
451 extern void proc_set_responsible_pid(proc_t target_proc, pid_t responsible_pid);
/xnu-11417.121.6/bsd/net/
H A Dpktap.h98 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 */
244 pid_t, const char *, pid_t, const char *, kern_packet_t,
248 pid_t, const char *, pid_t, const char *, kern_packet_t,
H A Dcontent_filter.h96 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-11417.121.6/bsd/skywalk/namespace/
H A Dprotons.h48 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 Dprotons.c58 pid_t pt_pid;
59 pid_t pt_epid;
121 protons_token_has_matching_pid(struct protons_token *pt, pid_t pid, pid_t epid) in protons_token_has_matching_pid()
170 protons_reserve_locked(struct protons_token **ptp, pid_t pid, pid_t epid, in protons_reserve_locked()
212 protons_reserve(struct protons_token **ptp, pid_t pid, pid_t epid, in protons_reserve()
/xnu-11417.121.6/bsd/bsm/
H A Daudit_record.h285 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 …]

12345678910>>...13