| /xnu-11215/tests/ |
| H A D | voucher_entry_18826844.c | 47 mach_port_urefs_t refs = 0; variable 49 kr = mach_port_get_refs(mach_task_self(), voucher, MACH_PORT_RIGHT_SEND, &refs); 53 T_ASSERT_EQ(refs, (mach_port_urefs_t)1, "voucher must have only one ref"); 109 kr = mach_port_get_refs(mach_task_self(), voucher, MACH_PORT_RIGHT_SEND, &refs);
|
| /xnu-11215/osfmk/kern/ |
| H A D | task_ref.c | 93 extern void task_deallocate_internal(task_t task, os_ref_count_t refs); 342 os_ref_count_t refs = -1; in task_deallocate_grp() local 372 refs = os_ref_release_raw(&task->ref_count.ref_count, refgrp); in task_deallocate_grp() 375 task_deallocate_internal(task, refs); in task_deallocate_grp() 547 os_ref_count_t refs = os_ref_release(&task->ref_count); in task_deallocate_grp() local 548 task_deallocate_internal(task, refs); in task_deallocate_grp()
|
| H A D | task.c | 2065 if (refs == 1) { in task_deallocate_internal() 2080 if (refs > 0) { in task_deallocate_internal() 4559 if (refs == 0) { in task_add_turnstile_watchports() 4610 if (refs == 0) { in task_remove_turnstile_watchports() 4754 return refs; in task_add_turnstile_watchports_locked() 4788 if (refs == 0) { in task_add_turnstile_watchports_locked() 4792 return refs; in task_add_turnstile_watchports_locked() 4832 if (refs == 0) { in task_remove_turnstile_watchports_locked() 4839 return refs; in task_remove_turnstile_watchports_locked() 4917 if (refs == 0) { in task_watchport_elem_deallocate() [all …]
|
| H A D | thread_call.c | 1113 int32_t refs = --call->tc_refs; in thread_call_free() local 1114 if (refs < 0) { in thread_call_free() 1115 panic("(%p %p) Refcount negative: %d", call, call->tc_func, refs); in thread_call_free() 1126 if (refs == 0) { in thread_call_free()
|
| /xnu-11215/osfmk/ipc/ |
| H A D | ipc_importance.c | 3692 uint32_t refs, *outrefsp; in ipc_importance_command() local 3699 if (in_content_size != sizeof(refs) || in ipc_importance_command() 3700 (*out_content_size != 0 && *out_content_size != sizeof(refs))) { in ipc_importance_command() 3703 refs = *(uint32_t *)(void *)in_content; in ipc_importance_command() 3726 if (0 == refs) { in ipc_importance_command() 3744 if (III_EXTERN(inherit) < refs) { in ipc_importance_command() 3754 inherit->iii_externdrop += refs; in ipc_importance_command() 3755 to_task->iit_externdrop += refs; in ipc_importance_command() 3777 if (to_task->iit_assertcnt > refs + externcnt) { in ipc_importance_command() 3778 to_task->iit_assertcnt -= refs; in ipc_importance_command() [all …]
|
| H A D | ipc_port.c | 3541 int refs);
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IOUserServer.cpp | 3407 uint64_t refs; in IOUserServerUEXTTrap() local 3432 if ((refs > 2) || !refs) { in IOUserServerUEXTTrap() 3459 if (refs < 2) { in IOUserServerUEXTTrap() 3471 if (refs > 1) { in IOUserServerUEXTTrap() 3740 uint64_t refs; in copyOutObjects() local 3760 if (refs > maxObjectCount) { in copyOutObjects() 3847 if (idx >= refs) { in copyOutObjects() 3888 uint64_t refs; in copyInObjects() local 3905 if (refs > maxObjectCount) { in copyInObjects() 3973 if (idx >= refs) { in copyInObjects() [all …]
|
| /xnu-11215/iokit/IOKit/skywalk/ |
| H A D | IOSkywalkSupport.h | 96 IOSKMemoryArrayRef IOSKMemoryArrayCreate( const IOSKMemoryRef refs[__counted_by(count)],
|
| /xnu-11215/osfmk/mach/ |
| H A D | mach_port.defs | 150 * port (possibly with multiple user refs), a port set, or 151 * a dead name (again, with multiple user refs). 173 * A dead name always has one or more user refs. 174 * A send right always has one or more user refs. 188 out refs : mach_port_urefs_t);
|
| /xnu-11215/libsyscall/mach/ |
| H A D | mach_port.c | 146 mach_port_urefs_t *refs) in mach_port_get_refs() argument 150 rv = _kernelrpc_mach_port_get_refs(task, name, right, refs); in mach_port_get_refs()
|
| /xnu-11215/bsd/skywalk/namespace/ |
| H A D | netns.c | 823 uint32_t refs; in _netns_release_common() local 858 for (i = 0, refs = 0; i <= NETNS_OWNER_MAX && refs == 0; i++) { in _netns_release_common() 859 refs |= res->nsr_refs[i]; in _netns_release_common() 861 if (refs == 0) { in _netns_release_common()
|
| /xnu-11215/doc/debugging/ |
| H A D | task_ref.md | 131 -------- OP 1 Stack Index 0 with active refs 1 of 165 --------
|
| /xnu-11215/iokit/bsddev/skywalk/ |
| H A D | IOSkywalkSupport.cpp | 1491 const IOSKMemoryRef refs[], in IOSKMemoryArrayCreate() argument 1498 if (!refs || (count < 1)) { in IOSKMemoryArrayCreate() 1504 ref = refs[i]; in IOSKMemoryArrayCreate() 1516 if (ma && !ma->initWithDescriptors((IOMemoryDescriptor **)refs, in IOSKMemoryArrayCreate()
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | ipc.py | 123 refs = 0 1808 refs = unsigned(iie.iie_bits) >> xnudefines.IIE_TYPE_BITS 1811 out_str += fmt.format(iie, type_str, refs, made_refs, kmsg_count, inherit_count)
|