/darwin-on-arm/xnu/libsyscall/wrappers/ |
H A D | kill.c | 26 extern int __kill(pid_t pid, int sig, int posix); 36 kill(pid_t pid, int sig) argument 39 return(__kill(pid, sig, 1)); 41 return(__kill(pid, sig, 0));
|
/darwin-on-arm/xnu/tools/tests/libMicro/ |
H A D | signal.c | 81 int pid; local 83 pid = getpid(); 86 (void) kill(pid, SIGUSR1); 87 (void) kill(pid, SIGUSR1); 88 (void) kill(pid, SIGUSR1); 89 (void) kill(pid, SIGUSR1); 90 (void) kill(pid, SIGUSR1); 91 (void) kill(pid, SIGUSR1); 92 (void) kill(pid, SIGUSR1); 93 (void) kill(pid, SIGUSR [all...] |
/darwin-on-arm/xnu/bsd/sys/ |
H A D | lctx.h | 12 getlcid(pid_t pid) argument 14 return (syscall(SYS_getlcid, pid)); 18 setlcid(pid_t pid, pid_t lcid) argument 20 return (syscall(SYS_setlcid, pid, lcid));
|
H A D | kern_memorystatus.h | 83 pid_t pid; member in struct:memorystatus_priority_entry 111 pid_t pid; member in struct:jetsam_snapshot_entry 137 int32_t pid; member in struct:memorystatus_freeze_entry 178 pid_t pid; member in struct:memorystatus_node 200 extern kern_return_t memorystatus_list_add(int pid, int priority, int high_water_mark); 201 extern kern_return_t memorystatus_list_change(boolean_t effective, int pid, int priority, int state_flags, int high_water_mark); 202 extern kern_return_t memorystatus_list_remove(int pid); 204 extern kern_return_t memorystatus_on_track_dirty(int pid, boolean_t track); 205 extern kern_return_t memorystatus_on_dirty(int pid, boolean_t dirty); 207 extern void memorystatus_on_suspend(int pid); [all...] |
H A D | codesign.h | 59 int csops(pid_t pid, unsigned int ops, void * useraddr, size_t usersize); 61 int csops_audittoken(pid_t pid, unsigned int ops, void * useraddr, size_t usersize, audit_token_t * token);
|
/darwin-on-arm/xnu/bsd/dev/chud/ |
H A D | chud_process.c | 36 task_t chudxnu_task_for_pid(int pid); 43 int pid = -1; local 51 return pid; 55 chudxnu_task_for_pid(int pid) argument 58 proc_t p = proc_find(pid); 69 int pid = -1; local 74 pid = chudxnu_pid_for_task(t); 76 if(-1 == pid) { 78 pid = proc_pid(current_proc()); 80 if(-1 == pid [all...] |
/darwin-on-arm/xnu/libsyscall/mach/ |
H A D | abort.h | 34 int __kill(int pid, int signum, int posix);
|
/darwin-on-arm/xnu/tools/tests/libMicro/apple/ |
H A D | posix_spawn_bin.c | 48 int pid; local 64 if (posix_spawn(&pid, argv[0], NULL, NULL, argv, NULL)) {
|
H A D | posix_spawn.c | 84 int pid; local 87 if (( c = posix_spawn(&pid, exec_path, NULL, NULL, argv, NULL) != 0)) 92 if (waitpid(pid, &status, 0) < 0)
|
H A D | lmbench_lat_sig_catch.c | 85 int pid; member in struct:__anon1362 197 ts->pid = getpid(); 221 (void) kill(ts->pid, SIGUSR1);
|
H A D | lmbench_lat_sig_send.c | 85 int pid; member in struct:__anon1365 190 ts->pid = getpid(); 214 (void) kill(ts->pid, 0);
|
H A D | lmbench_bw_unix.c | 87 int pid; member in struct:__anon1359 216 switch (state->pid = fork()) { 276 if (state->pid > 0) { 277 kill(state->pid, SIGKILL); 278 waitpid(state->pid, NULL, 0); 280 state->pid = 0;
|
H A D | lmbench_select_file.c | 90 pid_t pid; member in struct:__anon1367 130 int pid; local 133 pid = getpid(); 134 ts->pid = 0; 164 // switch(state->pid = fork()) { 167 // while (pid == getppid()) {
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | vm_pressure.h | 43 boolean_t vm_dispatch_pressure_note_to_pid(pid_t pid);
|
H A D | kern_memorystatus.c | 77 static memorystatus_node *memorystatus_get_node(pid_t pid); 332 int error, pid = 0; variable 334 error = sysctl_handle_int(oidp, &pid, 0, req); 338 if (vm_dispatch_pressure_note_to_pid(pid)) { 375 int error, pid = 0; variable 378 error = sysctl_handle_int(oidp, &pid, 0, req); 382 p = proc_find(pid); 403 int error, pid = 0; variable 406 error = sysctl_handle_int(oidp, &pid, 0, req); 410 p = proc_find(pid); 531 memorystatus_get_node(pid_t pid) argument 562 memorystatus_list_add(pid_t pid, int priority, int high_water_mark) argument 595 memorystatus_list_change(boolean_t effective, pid_t pid, int priority, int state_flags, int high_water_mark) argument 689 memorystatus_list_remove(pid_t pid) argument 737 memorystatus_on_track_dirty(int pid, boolean_t track) argument 763 memorystatus_on_dirty(int pid, boolean_t dirty) argument 795 memorystatus_on_suspend(int pid) argument 820 memorystatus_on_resume(int pid) argument 848 memorystatus_on_inactivity(int pid) argument 1071 memorystatus_mark_pid_in_snapshot(pid_t pid, int flags) argument 1677 pid_t pid = -1; local 1701 memorystatus_send_pressure_note(pid_t pid) argument [all...] |
/darwin-on-arm/xnu/osfmk/kperf/ |
H A D | threadinfo.h | 35 uint64_t pid; member in struct:threadinfo
|
H A D | threadinfo.c | 79 ti->pid = context->cur_pid; 90 BUF_DATA( PERF_TI_DATA, ti->pid, ti->tid, ti->dq_addr, ti->runmode ); 167 context->pid = chudxnu_current_pid(); 168 threadInfo->pid = context->generic->pid;
|
/darwin-on-arm/xnu/tools/tests/execperf/ |
H A D | run.c | 62 pid_t pid; local 65 ret = posix_spawn(&pid, newargv[0], NULL, NULL, newargv, environ); 70 while (-1 == waitpid(pid, &ret, 0)) { 72 err(1, "waitpid(%d)", pid);
|
/darwin-on-arm/xnu/libsyscall/xcodescripts/ |
H A D | compile-syscalls.pl | 101 my $pid = fork(); 102 if ($pid == 0) {
|
/darwin-on-arm/xnu/iokit/IOKit/ |
H A D | IOKitKeysPrivate.h | 65 UInt32 pid; member in struct:_IOUCProcessToken
|
/darwin-on-arm/xnu/tools/tests/affinity/ |
H A D | tags.c | 38 " pid process id of target task\n" 85 int pid; local 115 pid = atoi(*argv); 117 ret = task_for_pid(mach_task_self(), pid, &port); 119 err(1, "task_for_pid(,%d,) returned %d", pid, ret); 124 err(1, "task_threads() returned %d", pid, ret);
|
/darwin-on-arm/xnu/osfmk/kern/ |
H A D | exception.h | 58 extern kern_return_t sys_perf_notify(thread_t thread, int pid);
|
/darwin-on-arm/xnu/bsd/vm/ |
H A D | vm_unix.c | 132 printf("Data/Stack execution not permitted: %s[pid %d] at virtual address 0x%qx, protections were %s\n", 398 * args->pid Process ID (returned value; see below) 403 * Implicit returns: args->pid Process ID 411 user_addr_t pid_addr = args->pid; 414 int pid = -1; local 428 pid = proc_pid(p); 436 AUDIT_ARG(pid, pid); 437 (void) copyout((char *) &pid, pid_addr, sizeof(int)); 536 * Note: if pid 545 int pid = args->pid; local 657 int pid = args->pid; local 733 int pid = args->pid; local 819 int pid = args->pid; local 907 int pid = args->pid; local 964 int pid = args->pid; local [all...] |
/darwin-on-arm/xnu/bsd/bsm/ |
H A D | audit_record.h | 237 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 239 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 241 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 243 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid); 245 uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, 248 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid); 260 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 262 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 264 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 266 gid_t rgid, pid_t pid, au_asid_ [all...] |
/darwin-on-arm/xnu/bsd/dev/dtrace/ |
H A D | fasttrap.c | 173 static uint64_t fasttrap_pid_count; /* pid ref count */ 192 #define FASTTRAP_PROVS_INDEX(pid, name) \ 193 ((fasttrap_hash_str(name) + (pid)) & fasttrap_provs.fth_mask) 195 #define FASTTRAP_PROCS_INDEX(pid) ((pid) & fasttrap_procs.fth_mask) 531 * is set on the proc structure to indicate that there is a pid provider 555 * We clean up the pid provider for this process here; user-land 587 * There are no "default" pid probes. 597 pid_t pid; local 602 pid 771 pid_t pid; local 1310 fasttrap_proc_lookup(pid_t pid) argument 1384 pid_t pid = proc->ftpc_pid; local 1443 fasttrap_provider_lookup(pid_t pid, fasttrap_provider_type_t provider_type, const char *name, const dtrace_pattr_t *pattr) argument 1589 pid_t pid = provider->ftp_pid; local 1642 fasttrap_provider_retire(pid_t pid, const char *name, int mprov) argument 1951 fasttrap_meta_provide(void *arg, dtrace_helper_provdesc_t *dhpv, pid_t pid) argument 2237 fasttrap_meta_remove(void *arg, dtrace_helper_provdesc_t *dhpv, pid_t pid) argument 2326 pid_t pid = probe->ftps_pid; local 2366 pid_t pid = instr.ftiq_pid; local [all...] |