| /xnu-11215/libkern/kxld/ |
| H A D | kxld.c | 140 context = kxld_calloc(sizeof(*context)); in kxld_create_context() 143 context->flags = flags; in kxld_create_context() 205 *_context = context; in kxld_create_context() 206 context = NULL; in kxld_create_context() 209 if (context) { in kxld_create_context() 233 check(context); in kxld_destroy_context() 255 kxld_free(context, sizeof(*context)); in kxld_destroy_context() 354 clear_context(context); in kxld_link_split_file() 433 clear_context(context); in kxld_link_file() 577 context->section_order, context->cputype, context->cpusubtype, context->flags); in get_object_for_file() [all …]
|
| /xnu-11215/osfmk/kdp/ |
| H A D | processor_core.c | 327 context->task = task; in kern_register_userspace_coredump() 540 void *context) in coredump_save_segment_descriptions() argument 900 &context); in kern_coredump_routine() 934 __func__, context.core_notes_remaining, context.core_note_count); in kern_coredump_routine() 946 &context); in kern_coredump_routine() 958 assert(context.core_cur_hoffset == context.core_header_size); in kern_coredump_routine() 961 …ret = kdp_core_output(context.core_outvars, (round_page(context.core_header_size) - context.core_h… in kern_coredump_routine() 964 …context.core_segment_bytes_remaining, context.core_outvars, (round_page(context.core_header_size) … in kern_coredump_routine() 969 context.core_cur_foffset = round_page(context.core_header_size); in kern_coredump_routine() 1025 …current_core->kcc_corename, context.core_segment_count, context.core_segment_byte_total, context.c… in kern_coredump_routine() [all …]
|
| H A D | processor_core.h | 61 void kern_coredump_log(void *context, const char *string, ...) __printflike(2, 3); 79 uint64_t misc_bytes_count, void *context); 91 void *context); 108 void *context); 123 typedef kern_return_t (*core_save_thread_state_cb)(void *thread_state, void *context); 150 typedef kern_return_t (*core_save_sw_vers_cb)(void *sw_vers, uint64_t length, void *context); 176 typedef kern_return_t (*core_save_segment_data_cb)(void *seg_data, uint64_t length, void *context); 189 typedef kern_return_t (*core_save_note_data_cb)(void *note_data, uint64_t length, void *context); 203 typedef kern_return_t (*core_save_misc_data_cb)(void *misc_data, uint64_t length, void *context); 255 kern_return_t user_dump_init(void *refcon, void *context); [all …]
|
| H A D | user_core.c | 36 user_dump_init(void *refcon, void *context) in user_dump_init() argument 47 kern_coredump_log(context, "%s: no task is set\n", __func__); in user_dump_init() 84 struct user_dump_preflight_context *udc_preflight = context; in user_dump_map_traverse_preflight_callback() 114 thread_count, thread_state_size, 0, context); in user_dump_save_summary() 119 void *context; member 125 struct user_dump_send_seg_desc_context *uds_context = context; in user_dump_map_traverse_send_segdesc_callback() 141 uds_context.context = context; in user_dump_save_seg_descriptions() 165 kern_return_t ret = callback(buf, context); in user_dump_save_thread_state() 194 void *context; member 212 struct user_dump_send_segdata_context uds_context = {.callback = callback, .context = context}; in user_dump_save_segment_data() [all …]
|
| H A D | sk_core.c | 413 papt_walk(papt_walk_callback cb, void *context) in papt_walk() argument 444 kr = cb(seg_start, seg_end, context); in papt_walk() 458 kr = cb(seg_start, seg_end, context); in papt_walk() 494 sk_dump_init(void *refcon, void *context) in sk_dump_init() argument 562 secure_segment_desc_t *ssd = context; in secure_seg_desc() 569 void *context) in sk_dump_save_seg_desc() argument 574 .ssd_context = context in sk_dump_save_seg_desc() 596 secure_segment_data_t *ssd = context; in secure_seg_data() 603 void *context) in sk_dump_save_seg_data() argument 608 .ssd_context = context in sk_dump_save_seg_data() [all …]
|
| H A D | kdp_core.c | 102 void *context); 117 void *context); 121 void *context); 126 void *context); 429 void *context) in pmap_traverse_present_mappings() argument 575 void *context) in kern_dump_pmap_traverse_preflight_callback() argument 589 void *context; member 595 void *context) in kern_dump_pmap_traverse_send_segdesc_callback() argument 606 void *context; member 673 kds_context.context = context; in kern_dump_save_seg_descriptions() [all …]
|
| H A D | kdp_common.h | 77 typedef int (*kdp_traverse_mappings_callback)(vm_offset_t start, vm_offset_t end, void *context); 94 void * context); 117 …d_phys_fn_t)(vm_map_t map, vm_offset_t target_addr, kdp_fault_flags_t fault_flags, void * context); 135 …oid *dest, size_t size, kdp_fault_flags_t fault_flags, find_phys_fn_t find_phys_fn, void *context); 151 …addr, uint64_t *result, kdp_fault_flags_t fault_flags, find_phys_fn_t find_phys_fn, void *context); 168 … char *buf, int buf_sz, kdp_fault_flags_t fault_flags, find_phys_fn_t find_phys_fn, void *context);
|
| H A D | kdp_common.c | 112 void * context) in kdp_traverse_mappings() argument 132 ret = callback(vphys, vphys + task_page_size, context); in kdp_traverse_mappings() 134 ret = callback(vcur, vcur + task_page_size, context); in kdp_traverse_mappings() 229 uint64_t phys_src = (*find_phys_fn)(map, (vm_offset_t)uaddr, fault_flags, context); in kdp_generic_copyin() 261 … addr, uint64_t *result, kdp_fault_flags_t fault_flags, find_phys_fn_t find_phys_fn, void *context) in kdp_generic_copyin_word() argument 267 … kdp_generic_copyin(task->map, addr, result, sizeof(uint64_t), fault_flags, find_phys_fn, context); in kdp_generic_copyin_word() 270 … = kdp_generic_copyin(task->map, addr, &buf, sizeof(uint32_t), fault_flags, find_phys_fn, context); in kdp_generic_copyin_word() 280 …, char *buf, int buf_sz, kdp_fault_flags_t fault_flags, find_phys_fn_t find_phys_fn, void *context) in kdp_generic_copyin_string_slowpath() argument 295 phys_src = (*find_phys_fn)(map, (vm_offset_t)(addr + i), fault_flags, context); in kdp_generic_copyin_string_slowpath() 335 …_generic_copyin(task->map, addr, optbuffer, sizeof(optbuffer), fault_flags, find_phys_fn, context); in kdp_generic_copyin_string() [all …]
|
| /xnu-11215/bsd/kern/ |
| H A D | tty_tty.c | 89 struct vfs_context context; in cttyopen() local 144 VNOP_CLOSE(ttyvp, flag, &context); in cttyopen() 154 kauth_cred_unref(&context.vc_ucred); in cttyopen() 163 struct vfs_context context; in cttyread() local 171 context.vc_ucred = NOCRED; in cttyread() 183 struct vfs_context context; in cttywrite() local 191 context.vc_ucred = NOCRED; in cttywrite() 203 struct vfs_context context; in cttyioctl() local 226 context.vc_ucred = NOCRED; in cttyioctl() 238 struct vfs_context context; in cttyselect() local [all …]
|
| H A D | kern_descrip.c | 251 struct vfs_context context; in fg_drop() local 262 context.vc_thread = NULL; in fg_drop() 264 context.vc_ucred = fg->fg_cred; in fg_drop() 293 error = fo_close(fg, &context); in fg_drop() 348 struct vfs_context context; in fg_transfer_filelocks() local 354 context.vc_thread = thread; in fg_transfer_filelocks() 355 context.vc_ucred = fg->fg_cred; in fg_transfer_filelocks() 1632 struct vfs_context context; in fileproc_drain() local 1647 context.vc_thread = thread; in fileproc_drain() 1656 fo_drain(fp, &context); in fileproc_drain() [all …]
|
| /xnu-11215/EXTERNAL_HEADERS/CoreEntitlements/ |
| H A D | der_vm.h | 88 der_vm_context_t der_vm_execute(const der_vm_context_t context, CEQueryOperation_t op); 110 der_vm_context_t der_vm_execute_nocopy(const der_vm_context_t context, const CEQueryOperation_t* op… 197 CEError_t der_vm_iterate_b(const der_vm_context_t* context, der_vm_iteration_block callback); 211 bool der_vm_context_is_valid(const der_vm_context_t context); 222 CEType_t der_vm_CEType_from_context(const der_vm_context_t context, ccder_tag* tag); 233 CEType_t der_vm_CEType_from_ccder_tag(const der_vm_context_t context, ccder_tag tag); 239 int64_t der_vm_integer_from_context(const der_vm_context_t context); 245 CEBuffer der_vm_string_from_context(const der_vm_context_t context); 251 bool der_vm_bool_from_context(const der_vm_context_t context); 257 CEBuffer der_vm_data_from_context(const der_vm_context_t context); [all …]
|
| H A D | Index.h | 56 CEError_t CEIndexSizeForContext(CEQueryContext_t context, size_t* size); 66 CEError_t CEBuildIndexForContext(CEQueryContext_t context); 75 CEError_t CEFreeIndexForContext(CEQueryContext_t context); 84 bool CEContextIsAccelerated(CEQueryContext_t context);
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_xattr.c | 116 vfs_context_t context); 1655 context); in default_getxattr() 1673 context, port); in default_setxattr() 1694 context, port); in default_removexattr() 1715 context, port); in default_listxattr() 2400 context); in default_removexattr_vfs() 2406 context); in default_removexattr_vfs() 2714 context))) { in default_listxattr_doubleagent() 3142 context); in open_xattrfile() 3344 context, NULL); in close_xattrfile() [all …]
|
| H A D | vfs_quota.c | 381 struct vfs_context context; in dqfileopen() local 387 context.vc_thread = current_thread(); in dqfileopen() 388 context.vc_ucred = qfp->qf_cred; in dqfileopen() 441 struct vfs_context context; in dqfileclose() local 449 context.vc_thread = current_thread(); in dqfileclose() 450 context.vc_ucred = qfp->qf_cred; in dqfileclose() 765 struct vfs_context context; in dqlookup() local 777 context.vc_thread = current_thread(); in dqlookup() 778 context.vc_ucred = qfp->qf_cred; in dqlookup() 984 struct vfs_context context; in dqsync_locked() local [all …]
|
| /xnu-11215/osfmk/kperf/ |
| H A D | action.c | 144 kperf_ucallstack_sample(&sbuf->ucallstack, context); in kperf_sample_user_internal() 147 kperf_thread_info_sample(&sbuf->th_info, context); in kperf_sample_user_internal() 216 struct kperf_context *context, in kperf_sample_internal() argument 233 context->cur_thread->kperf_pet_gen = in kperf_sample_internal() 236 bool is_kernel = (context->cur_pid == 0); in kperf_sample_internal() 250 kperf_thread_info_sample(&sbuf->th_info, context); in kperf_sample_internal() 287 pended_ucallstack = kperf_ucallstack_pend(context, in kperf_sample_internal() 293 kperf_thread_dispatch_pend(context, actionid); in kperf_sample_internal() 354 kperf_thread_inscyc_log(context); in kperf_sample_internal() 360 kperf_task_info_log(context); in kperf_sample_internal() [all …]
|
| H A D | thread_samplers.c | 110 ti->kpthi_pid = context->cur_pid; in kperf_thread_info_sample() 132 struct kperf_context *context) in kperf_thread_scheduling_sample() argument 135 assert(context != NULL); in kperf_thread_scheduling_sample() 137 thread_t thread = context->cur_thread; in kperf_thread_scheduling_sample() 224 struct kperf_context *context) in kperf_thread_snapshot_sample() argument 227 assert(context != NULL); in kperf_thread_snapshot_sample() 229 thread_t thread = context->cur_thread; in kperf_thread_snapshot_sample() 288 struct kperf_context *context) in kperf_thread_dispatch_sample() argument 291 assert(context != NULL); in kperf_thread_dispatch_sample() 293 thread_t thread = context->cur_thread; in kperf_thread_dispatch_sample() [all …]
|
| H A D | callstack.c | 198 assert(context != NULL); in kperf_continuation_sample() 200 thread = context->cur_thread; in kperf_continuation_sample() 217 assert(context != NULL); in kperf_backtrace_sample() 218 assert(context->cur_thread == current_thread()); in kperf_backtrace_sample() 229 .btc_frame_addr = (uintptr_t)context->starting_fp, in kperf_backtrace_sample() 267 assert(context != NULL); in kperf_kcallstack_sample() 270 thread = context->cur_thread; in kperf_kcallstack_sample() 332 thread_t thread = context->cur_thread; in kperf_ucallstack_sample() 496 if ((context->cur_thread->th_exclaves_state & TH_EXCLAVES_RPC) in kperf_exclave_callstack_pend() 513 kperf_ast_set_callstack_depth(context->cur_thread, depth); in kperf_ucallstack_pend() [all …]
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IOServicePM.cpp | 285 IOPMInterestContext *context, 6327 context.skippedInDark, context.skippedInDark + context.notSkippedInDark); in tellClientsWithResponse() 6403 !context->messageFilter(context->us, object, context, NULL, &waitForReply)) { in pmTellAppWithResponse() 6471 !context->messageFilter(context->us, object, context, NULL, NULL)) { in pmTellClientWithResponse() 6593 !context->messageFilter(context->us, object, context, &msgArg, &waitForReply)) { in pmTellCapabilityAppWithResponse() 6706 !context->messageFilter(context->us, object, context, &msgArg, NULL)) { in pmTellCapabilityClientWithResponse() 6845 memset(&context, 0, sizeof(context)); in tellClients() 6885 !context->messageFilter(context->us, object, context, NULL, NULL)) { in tellKernelClientApplier() 6899 context->us->messageClient(context->messageType, object, ¬ify, sizeof(notify)); in tellKernelClientApplier() 6978 !context->messageFilter(context->us, object, context, NULL, NULL)) { in tellAppClientApplier() [all …]
|
| H A D | IOPerfControl.cpp | 574 IOPerfControlWorkContext *context = new IOPerfControlWorkContext; in copyWorkContext() local 576 if (context == nullptr) { in copyWorkContext() 580 if (!context->init()) { in copyWorkContext() 581 context->free(); in copyWorkContext() 585 return context; in copyWorkContext() 593 if (workSubmitWithContext(device, context, submitArgs) == false) { in workSubmitAndBeginWithContext() 597 IOPerfControlWorkContext *work_context = OSDynamicCast(IOPerfControlWorkContext, context); in workSubmitAndBeginWithContext() 622 IOPerfControlWorkContext *work_context = OSDynamicCast(IOPerfControlWorkContext, context); in workSubmitWithContext() 669 IOPerfControlWorkContext *work_context = OSDynamicCast(IOPerfControlWorkContext, context); in workUpdateWithContext() 695 IOPerfControlWorkContext *work_context = OSDynamicCast(IOPerfControlWorkContext, context); in workBeginWithContext() [all …]
|
| /xnu-11215/tests/ |
| H A D | turnstile_multihop.c | 116 context = calloc(1, sizeof(*context)); in sched_create_load_at_qos() 117 if (context == NULL) { in sched_create_load_at_qos() 121 context->threads_should_exit = 0; in sched_create_load_at_qos() 122 context->thread_count = nthreads; in sched_create_load_at_qos() 123 context->qos = qos; in sched_create_load_at_qos() 129 ret = pthread_create(&context->threads[i], &attr, sched_load_thread, context); in sched_create_load_at_qos() 137 *load_token = context; in sched_create_load_at_qos() 149 while (!context->threads_should_exit) { in sched_load_thread() 170 context->threads_should_exit = 1; in sched_terminate_load() 179 free(context->threads); in sched_terminate_load() [all …]
|
| H A D | test_knote_use_after_free.c | 26 knote_context_t *context = (knote_context_t *)arg; in th_allocate_knotes() local 28 T_QUIET; T_ASSERT_EQ(context->initialized, (int)0, "th_allocate_knotes context is initialized."); in th_allocate_knotes() 128 context->initialized = 1; in th_allocate_knotes() 129 while (!context->start) { in th_allocate_knotes() 160 knote_context_t context = { variable 166 …T_ASSERT_POSIX_ZERO(pthread_create(&thknote, NULL, th_allocate_knotes, &context), "pthread_create"… 269 while (!context.initialized) { 272 context.start = 1;
|
| /xnu-11215/libkern/libkern/ |
| H A D | kxld.h | 56 KXLDContext **context, 70 KXLDContext *context) 95 KXLDContext *context, 108 KXLDContext *context,
|
| /xnu-11215/bsd/sys/ |
| H A D | mount.h | 606 int (*vfs_start)(struct mount *mp, int flags, vfs_context_t context); 618 int (*vfs_unmount)(struct mount *mp, int mntflags, vfs_context_t context); 630 int (*vfs_root)(struct mount *mp, struct vnode **vpp, vfs_context_t context); 654 int (*vfs_getattr)(struct mount *mp, struct vfs_attr *vfa, vfs_context_t context); 666 int (*vfs_sync)(struct mount *mp, int waitfor, vfs_context_t context); 678 int (*vfs_vget)(struct mount *mp, ino64_t ino, struct vnode **vpp, vfs_context_t context); 694 vfs_context_t context); 743 int (*vfs_setattr)(struct mount *mp, struct vfs_attr *vfa, vfs_context_t context); 761 int flags, vfs_context_t context); 773 int (*vfs_vget_snapdir)(struct mount *mp, struct vnode **vpp, vfs_context_t context); [all …]
|
| /xnu-11215/osfmk/ipc/ |
| H A D | ipc_service_port.c | 289 …set_attr(ipc_service_port_label_t port_splabel, mach_port_name_t name, mach_port_context_t context) in ipc_service_port_label_set_attr() argument 293 port_splabel->ispl_launchd_context = context; in ipc_service_port_label_set_attr() 294 if (context) { in ipc_service_port_label_set_attr() 313 …t_attr(ipc_service_port_label_t port_splabel, mach_port_name_t *name, mach_port_context_t *context) in ipc_service_port_label_get_attr() argument 316 *context = port_splabel->ispl_launchd_context; in ipc_service_port_label_get_attr()
|
| /xnu-11215/osfmk/arm64/ |
| H A D | sleh.c | 106 #define TEST_CONTEXT32_SANITY(context) \ argument 107 …(context->ss.ash.flavor == ARM_SAVED_STATE32 && context->ss.ash.count == ARM_SAVED_STATE32_COUNT &… 108 …context->ns.nsh.flavor == ARM_NEON_SAVED_STATE32 && context->ns.nsh.count == ARM_NEON_SAVED_STATE3… 110 #define TEST_CONTEXT64_SANITY(context) \ argument 111 …(context->ss.ash.flavor == ARM_SAVED_STATE64 && context->ss.ash.count == ARM_SAVED_STATE64_COUNT &… 112 …context->ns.nsh.flavor == ARM_NEON_SAVED_STATE64 && context->ns.nsh.count == ARM_NEON_SAVED_STATE6… 114 #define ASSERT_CONTEXT_SANITY(context) \ argument 115 assert(TEST_CONTEXT32_SANITY(context) || TEST_CONTEXT64_SANITY(context)) 686 ASSERT_CONTEXT_SANITY(context); in sleh_synchronous() 761 context, esr, (void *)far); in sleh_synchronous() [all …]
|