| /xnu-11215/tests/ |
| H A D | ipv6_bind_race.c | 82 #pragma unused(arg) in bind4_racer() 98 #pragma unused(arg) in bind6_racer() 114 #pragma unused(arg) in connect6_racer() 130 #pragma unused(arg) in connect4_racer() 146 #pragma unused(arg) in bind6_leader() 167 #pragma unused(arg) in bind4_leader() 188 #pragma unused(arg) in send6_racer() 204 #pragma unused(arg) in send4_racer() 220 #pragma unused(arg) in send6_leader() 242 #pragma unused(arg) in connectx6_leader() [all …]
|
| H A D | mach_eventlink.c | 47 thread_create_for_test(void * (*function)(void *), void *arg) in thread_create_for_test() argument 53 pthread_create(&pthread, &attr, function, arg); in thread_create_for_test() 60 while1loop(__unused void *arg) in while1loop() argument 69 test_eventlink_wait_with_timeout(void *arg) in test_eventlink_wait_with_timeout() argument 72 mach_port_t eventlink_port = (mach_port_t) (uintptr_t)arg; in test_eventlink_wait_with_timeout() 92 test_eventlink_wait_no_wait(void *arg) in test_eventlink_wait_no_wait() argument 114 test_eventlink_wait_destroy(void *arg) in test_eventlink_wait_destroy() argument 135 test_eventlink_wait_for_signal(void *arg) in test_eventlink_wait_for_signal() argument 157 test_eventlink_wait_then_signal(void *arg) in test_eventlink_wait_then_signal() argument 242 test_eventlink_wait_then_signal_loop(void *arg) in test_eventlink_wait_then_signal_loop() argument [all …]
|
| H A D | ecc_test.c | 25 my_system(const char *command, const char *arg) in my_system() argument 34 arg, in my_system() 52 run_helper(const char *arg) in run_helper() argument 54 printf("\nNow running \"%s\":\n", arg); in run_helper() 55 return my_system("./ecc_test_helper", arg); in run_helper()
|
| /xnu-11215/osfmk/kern/ |
| H A D | printf.c | 225 (*putc)(*p, arg); in printnum() 276 (*putc)(c, arg); in __doprnt() 429 (*putc)(c, arg); in __doprnt() 443 (*putc)(c, arg); in __doprnt() 453 (*putc)('>', arg); in __doprnt() 461 (*putc)(c, arg); in __doprnt() 490 (*putc)(' ', arg); in __doprnt() 502 (*putc)(*p++, arg); in __doprnt() 509 (*putc)(' ', arg); in __doprnt() 716 (*putc)(*p, arg); in __doprnt() [all …]
|
| H A D | syscall_sw.h | 99 #define MACH_TRAP_MUNGE(arg) .mach_trap_arg_munge32 = arg, argument 101 #define MACH_TRAP_MUNGE(arg) argument 105 #define MACH_TRAP_NAME(arg) .mach_trap_name = #arg, argument 107 #define MACH_TRAP_NAME(arg) argument
|
| H A D | hv_support_kext.c | 233 hv_task_trap(uint64_t index, uint64_t arg) in hv_task_trap() argument 235 KDBG(MACHDBG_CODE(DBG_MACH_HV, HV_X86_TRAP_TASK) | DBG_FUNC_START, index, arg); in hv_task_trap() 236 DTRACE_HV2(task__trap__begin, uint64_t, index, uint64_t, arg); in hv_task_trap() 238 kern_return_t ret = HV_TRAP_DISPATCH(HV_TASK_TRAP, index, hv_get_task_target(), arg); in hv_task_trap() 247 hv_thread_trap(uint64_t index, uint64_t arg) in hv_thread_trap() argument 249 KDBG(MACHDBG_CODE(DBG_MACH_HV, HV_X86_TRAP_THREAD) | DBG_FUNC_START, index, arg); in hv_thread_trap() 250 DTRACE_HV2(thread__trap__begin, uint64_t, index, uint64_t, arg); in hv_thread_trap() 252 kern_return_t ret = HV_TRAP_DISPATCH(HV_THREAD_TRAP, index, hv_get_thread_target(), arg); in hv_thread_trap()
|
| /xnu-11215/bsd/kern/ |
| H A D | sys_work_interval.c | 60 if (uap->arg == USER_ADDR_NULL || uap->work_interval_id != 0) { in work_interval_ctl() 67 if ((error = copyin(uap->arg, &create_params, sizeof(create_params)))) { in work_interval_ctl() 110 if (uap->arg == USER_ADDR_NULL || uap->len < sizeof(create_params)) { in work_interval_ctl() 133 if (uap->arg == USER_ADDR_NULL || uap->len < WORK_INTERVAL_NAME_MAX) { in work_interval_ctl() 152 if (uap->arg == USER_ADDR_NULL || in work_interval_ctl() 160 if ((error = copyin(uap->arg, &workload_id_params, in work_interval_ctl() 195 if ((error = copyout(&workload_id_params, uap->arg, in work_interval_ctl() 201 if (uap->arg != USER_ADDR_NULL || uap->work_interval_id == 0) { in work_interval_ctl() 217 if (uap->arg == USER_ADDR_NULL || uap->work_interval_id == 0) { in work_interval_ctl() 230 if ((error = copyin(uap->arg, ¬ification, sizeof(notification)))) { in work_interval_ctl() [all …]
|
| H A D | kern_kpc.c | 295 uint32_t arg = 0; in sysctl_get_bigarray() local 298 int error = SYSCTL_IN(req, &arg, sizeof(arg)); in sysctl_get_bigarray() 303 error = get_fn(arg, &bufsize, buf); in sysctl_get_bigarray() 331 sysctl_getset_bigarray(struct sysctl_req *req, int (*size_fn)(uint32_t arg), in sysctl_getset_bigarray() argument 335 uint64_t arg; in sysctl_getset_bigarray() local 341 error = SYSCTL_IN(req, &arg, sizeof(arg)); in sysctl_getset_bigarray() 347 uint32_t regsize = size_fn((uint32_t)arg); in sysctl_getset_bigarray() 359 error = set_fn((uint32_t)arg, buf); in sysctl_getset_bigarray() 368 error = get_fn((uint32_t)arg, buf); in sysctl_getset_bigarray()
|
| /xnu-11215/tools/trace/ |
| H A D | ktruss.lua | 5 if not arg[1] or arg[1] == '-h' then 10 os.exit(arg[1] == nil) 15 for i = 1, #arg do 16 sess:add_callback_pair('BSC_' .. arg[i], function (start, finish) 19 sess:pid_for_threadid(start.threadid), arg[1], start[1], start[2],
|
| /xnu-11215/bsd/dev/dtrace/ |
| H A D | profile_prvd.c | 146 profile_fire(void *arg) in profile_fire() argument 148 profile_probe_percpu_t *pcpu = arg; in profile_fire() 210 profile_tick(void *arg) in profile_tick() argument 212 profile_probe_t *prof = arg; in profile_tick() 304 #pragma unused(arg) /* __APPLE__ */ in profile_provide() 448 #pragma unused(arg,id) /* __APPLE__ */ in profile_destroy() 468 profile_probe_t *prof = arg; in profile_online() 491 ASSERT(pcpu->profc_probe == arg); in profile_offline() 544 #pragma unused(arg,id) in profile_disable() 569 #pragma unused(arg, id) in profile_getargdesc() [all …]
|
| H A D | lockstat.c | 125 lockstat_enable(void *arg, dtrace_id_t id, void *parg) in lockstat_enable() argument 127 #pragma unused(arg) /* __APPLE__ */ in lockstat_enable() 141 lockstat_disable(void *arg, dtrace_id_t id, void *parg) in lockstat_disable() argument 143 #pragma unused(arg, id) /* __APPLE__ */ in lockstat_disable() 155 lockstat_provide(void *arg, const dtrace_probedesc_t *desc) in lockstat_provide() argument 157 #pragma unused(arg, desc) /* __APPLE__ */ in lockstat_provide() 179 lockstat_destroy(void *arg, dtrace_id_t id, void *parg) in lockstat_destroy() argument 181 #pragma unused(arg, id) in lockstat_destroy() 190 lockstat_getargdesc(void *arg, dtrace_id_t id, void *parg, dtrace_argdesc_t *desc) in lockstat_getargdesc() argument 192 #pragma unused(arg, id) in lockstat_getargdesc()
|
| H A D | systrace.c | 400 #pragma unused(arg) /* __APPLE__ */ in systrace_provide() 434 systrace_destroy(void *arg, dtrace_id_t id, void *parg) in systrace_destroy() argument 436 #pragma unused(arg,id) /* __APPLE__ */ in systrace_destroy() 454 systrace_enable(void *arg, dtrace_id_t id, void *parg) in systrace_enable() argument 456 #pragma unused(arg) /* __APPLE__ */ in systrace_enable() 488 #pragma unused(arg,id) /* __APPLE__ */ in systrace_disable() 769 #pragma unused(arg) /* __APPLE__ */ in machtrace_provide() 805 #pragma unused(arg,id) /* __APPLE__ */ in machtrace_destroy() 825 #pragma unused(arg) /* __APPLE__ */ in machtrace_enable() 859 #pragma unused(arg,id) /* __APPLE__ */ in machtrace_disable() [all …]
|
| /xnu-11215/bsd/netinet/ |
| H A D | in_rmx.c | 593 bzero(&arg, sizeof(arg)); in in_rtqtimo() 594 arg.rnh = rnh; in in_rtqtimo() 599 arg.found, arg.killed); in in_rtqtimo() 609 ours = (arg.found - arg.killed); in in_rtqtimo() 623 arg.found = arg.killed = 0; in in_rtqtimo() 624 arg.updating = 1; in in_rtqtimo() 676 bzero(&arg, sizeof(arg)); in in_rtqdrain() 677 arg.rnh = rnh; in in_rtqdrain() 678 arg.draining = 1; in in_rtqdrain() 813 arg.ifa = ifa; in in_ifadown() [all …]
|
| H A D | ip_encap.c | 177 prio = (*ep->func)(m, off, proto, ep->arg); in encap4_input() 211 match_arg = ep->arg; in encap4_input() 268 prio = (*ep->func)(m, *offp, proto, ep->arg); in encap6_input() 285 match_arg = ep->arg; in encap6_input() 373 new_ep->arg = arg; in encap_attach() 393 const struct protosw *psw, void *arg) in encap_attach_func() argument 410 ep->arg = arg; in encap_attach_func() 499 void* *arg; member 505 void *arg) in encap_fillarg() argument 515 et->arg = arg; in encap_fillarg() [all …]
|
| /xnu-11215/bsd/netinet6/ |
| H A D | in6_rmx.c | 668 struct rtqk_arg arg; in in6_rtqtimo() local 685 bzero(&arg, sizeof(arg)); in in6_rtqtimo() 686 arg.rnh = rnh; in in6_rtqtimo() 691 arg.found, arg.killed); in in6_rtqtimo() 701 ours = (arg.found - arg.killed); in in6_rtqtimo() 715 arg.found = arg.killed = 0; in in6_rtqtimo() 716 arg.updating = 1; in in6_rtqtimo() 759 struct rtqk_arg arg; in in6_rtqdrain() local 768 bzero(&arg, sizeof(arg)); in in6_rtqdrain() 769 arg.rnh = rnh; in in6_rtqdrain() [all …]
|
| /xnu-11215/SETUP/decomment/ |
| H A D | decomment.c | 56 int arg; in main() local 61 for (arg = 2; arg < argc; arg++) { in main() 62 switch (argv[arg][0]) { in main()
|
| /xnu-11215/san/memory/ |
| H A D | kasan.c | 312 unsigned arg; in kasan_init() local 320 if (PE_parse_boot_argn("kasan.checks", &arg, sizeof(arg))) { in kasan_init() 321 kasan_enabled_checks = arg; in kasan_init() 324 if (PE_parse_boot_argn("kasan", &arg, sizeof(arg))) { in kasan_init() 325 if (arg & KASAN_ARGS_FAKESTACK) { in kasan_init() 328 if (arg & KASAN_ARGS_REPORTIGNORED) { in kasan_init() 331 if (arg & KASAN_ARGS_NODYCHECKS) { in kasan_init() 334 if (arg & KASAN_ARGS_NOPOISON_HEAP) { in kasan_init() 337 if (arg & KASAN_ARGS_NOPOISON_GLOBAL) { in kasan_init()
|
| /xnu-11215/bsd/dev/arm64/ |
| H A D | dtrace_isa.c | 102 void *arg; member 111 (pArg->f)(pArg->arg); in xcRemote() 123 dtrace_xcall(processorid_t cpu, dtrace_xcall_t f, void *arg) in dtrace_xcall() argument 132 xcArg.arg = arg; in dtrace_xcall() 566 #pragma unused(arg, aframes) in dtrace_getarg() 603 if (arg <= inreg) { in dtrace_getarg() 610 arg -= (inreg + 1); in dtrace_getarg() 624 arg++; /* Advance past probeID */ in dtrace_getarg() 626 if (arg <= inreg) { in dtrace_getarg() 636 arg -= (inreg + 1); in dtrace_getarg() [all …]
|
| /xnu-11215/libkern/os/ |
| H A D | log_encode.c | 63 is_kernel_pointer(void *arg, size_t arg_len) in is_kernel_pointer() argument 71 (void) memcpy(&value, arg, arg_len); in is_kernel_pointer() 115 void *arg, size_t arg_size) in log_add_cmd() argument 127 (void) memcpy(cmd->cmd_data, arg, cmd->cmd_size); in log_add_cmd() 140 ctx->ctx_pubdata[ctx->ctx_pubdata_cnt++] = (char *)arg; in log_collect_public_range_data() 148 (void) memcpy(log_context_cursor(ctx), arg, range->length); in log_add_range_data() 166 void *arg, size_t arg_len) in log_add_range_arg() argument 181 log_collect_public_range_data(ctx, &range, arg); in log_add_range_arg() 199 log_add_cmd(ctx, type, OSLF_CMD_FLAG_PUBLIC, arg, arg_len); in log_add_arg() 281 if (doprnt_hide_pointers && is_kernel_pointer(arg, arg_len)) { in log_encode_fmt_arg() [all …]
|
| /xnu-11215/bsd/nfs/ |
| H A D | nfs_upcall.c | 96 nfsrv_uc_thread(void *arg, wait_result_t wr __unused) in nfsrv_uc_thread() argument 98 int qi = (int)(uintptr_t)arg; in nfsrv_uc_thread() 327 nfsrv_uc_proxy(socket_t so, void *arg, int waitflag) in nfsrv_uc_proxy() argument 329 struct nfsrv_uc_arg *uap = (struct nfsrv_uc_arg *)arg; in nfsrv_uc_proxy() 378 struct nfsrv_uc_arg *arg; in nfsrv_uc_addsock() local 390 arg = kalloc_type(struct nfsrv_uc_arg, in nfsrv_uc_addsock() 393 slp->ns_ua = arg; in nfsrv_uc_addsock() 394 arg->nua_slp = slp; in nfsrv_uc_addsock() 395 arg->nua_qi = NFS_UC_HASH(slp); in nfsrv_uc_addsock() 397 sock_setupcall(slp->ns_so, nfsrv_uc_proxy, arg); in nfsrv_uc_addsock()
|
| /xnu-11215/libsyscall/wrappers/cancelable/ |
| H A D | fcntl-base.c | 36 void *arg; in fcntl() local 78 arg = va_arg(ap, void *); in fcntl() 81 arg = (void *)((unsigned long)va_arg(ap, int)); in fcntl() 85 return __FCNTL(fd, cmd, arg); in fcntl()
|
| /xnu-11215/libkern/libclosure/ |
| H A D | runtime.cpp | 282 _Block_copy(const void *arg) in _Block_copy() argument 286 if (!arg) { in _Block_copy() 291 aBlock = (struct Block_layout *)arg; in _Block_copy() 339 _Block_byref_copy(const void *arg) in _Block_byref_copy() argument 341 struct Block_byref *src = (struct Block_byref *)arg; in _Block_byref_copy() 383 _Block_byref_release(const void *arg) in _Block_byref_release() argument 385 struct Block_byref *byref = (struct Block_byref *)arg; in _Block_byref_release() 418 _Block_release(const void *arg) in _Block_release() argument 420 struct Block_layout *aBlock = (struct Block_layout *)arg; in _Block_release() 439 _Block_tryRetain(const void *arg) in _Block_tryRetain() argument [all …]
|
| /xnu-11215/tools/lldbmacros/core/ |
| H A D | caching.py | 270 def __init__(self, arg): argument 271 if isinstance(arg, lldb.SBExecutionContext): 272 exe_ctx = lldbwrap.SBExecutionContext(arg) 275 elif isinstance(arg, lldb.SBValue): 278 elif isinstance(arg, lldb.SBBreakpoint): 279 bpoint = lldbwrap.SBBreakpoint(arg) 282 elif isinstance(arg, lldb.SBProcess): 283 process = lldbwrap.SBProcess(arg) 285 elif isinstance(arg, lldb.SBTarget): 286 target = lldbwrap.SBTarget(arg) [all …]
|
| /xnu-11215/tools/ |
| H A D | remote_build.sh | 28 for arg in "$@"; do 29 case $arg in 31 TARGET=`echo $arg | awk -F= '{print $2}'` 35 MAKE=`echo $arg | awk -F= '{print $2}'` 58 arg="VERBOSE=YES" 65 ARGS[$index]="$arg" 66 REMOTEARGS[$index]="\"$arg\""
|
| /xnu-11215/libsyscall/wrappers/ |
| H A D | ioctl.c | 37 void *arg; in ioctl() local 40 arg = va_arg(ap, void *); in ioctl() 42 return __ioctl(d, request, arg); in ioctl()
|