Home
last modified time | relevance | path

Searched refs:refs (Results 1 – 14 of 14) sorted by relevance

/xnu-11215/tests/
H A Dvoucher_entry_18826844.c47 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 Dtask_ref.c93 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 Dtask.c2065 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 Dthread_call.c1113 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 Dipc_importance.c3692 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 Dipc_port.c3541 int refs);
/xnu-11215/iokit/Kernel/
H A DIOUserServer.cpp3407 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 DIOSkywalkSupport.h96 IOSKMemoryArrayRef IOSKMemoryArrayCreate( const IOSKMemoryRef refs[__counted_by(count)],
/xnu-11215/osfmk/mach/
H A Dmach_port.defs150 * 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 Dmach_port.c146 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 Dnetns.c823 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 Dtask_ref.md131 -------- OP 1 Stack Index 0 with active refs 1 of 165 --------
/xnu-11215/iokit/bsddev/skywalk/
H A DIOSkywalkSupport.cpp1491 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 Dipc.py123 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)