| /xnu-8796.141.3/libkern/os/ |
| H A D | refcnt.h | 59 typedef uint32_t os_ref_count_t; typedef 60 typedef _Atomic(os_ref_count_t) os_ref_atomic_t; 102 static void os_ref_init_count(struct os_refcnt *, struct os_refgrp *, os_ref_count_t count) 127 static os_ref_count_t os_ref_release(struct os_refcnt *) OS_WARN_RESULT; 128 static os_ref_count_t os_ref_release_relaxed(struct os_refcnt *) OS_WARN_RESULT; 150 static os_ref_count_t os_ref_release_locked(struct os_refcnt *) OS_WARN_RESULT; 156 static os_ref_count_t os_ref_get_count(struct os_refcnt *rc); 170 static void os_ref_init_count_raw(os_ref_atomic_t *, struct os_refgrp *, os_ref_count_t count) 172 static void os_ref_retain_floor(struct os_refcnt *, os_ref_count_t f) 175 static void os_ref_retain_floor_raw(os_ref_atomic_t *, os_ref_count_t f, struct os_refgrp *) [all …]
|
| H A D | refcnt.c | 13 #define OS_REFCNT_MAX_COUNT ((os_ref_count_t)0x0FFFFFFFUL) 73 os_ref_check_underflow(void *rc, os_ref_count_t count, os_ref_count_t n) in os_ref_check_underflow() 81 os_ref_check_overflow(os_ref_atomic_t *rc, os_ref_count_t count) in os_ref_check_overflow() 89 os_ref_check_retain(os_ref_atomic_t *rc, os_ref_count_t count, os_ref_count_t n) in os_ref_check_retain() 210 ref_attach_to_group(os_ref_atomic_t *rc, struct os_refgrp *grp, os_ref_count_t init_count) in ref_attach_to_group() 270 ref_init_debug(os_ref_atomic_t *rc, struct os_refgrp * __debug_only grp, os_ref_count_t count) in ref_init_debug() 274 for (os_ref_count_t i = 0; i < count; i++) { in ref_init_debug() 289 os_ref_init_count_internal(os_ref_atomic_t *rc, struct os_refgrp * __debug_only grp, os_ref_count_t… in os_ref_init_count_internal() 302 __os_ref_retain(os_ref_atomic_t *rc, os_ref_count_t f, in __os_ref_retain() 305 os_ref_count_t old = atomic_fetch_add_explicit(rc, 1, memory_order_relaxed); in __os_ref_retain() [all …]
|
| H A D | refcnt_internal.h | 46 void os_ref_init_count_external(os_ref_atomic_t *, struct os_refgrp *, os_ref_count_t); 49 os_ref_count_t os_ref_release_external(os_ref_atomic_t *, struct os_refgrp *, 51 os_ref_count_t os_ref_release_relaxed_external(os_ref_atomic_t *, struct os_refgrp *); 52 os_ref_count_t os_ref_release_barrier_external(os_ref_atomic_t *, struct os_refgrp *); 53 os_ref_count_t os_ref_release_locked_external(os_ref_atomic_t *, struct os_refgrp *); 57 void os_ref_init_count_internal(os_ref_atomic_t *, struct os_refgrp *, os_ref_count_t); 59 void os_ref_retain_floor_internal(os_ref_atomic_t *, os_ref_count_t, struct os_refgrp *); 60 os_ref_count_t os_ref_release_relaxed_internal(os_ref_atomic_t *, struct os_refgrp *); 61 os_ref_count_t os_ref_release_barrier_internal(os_ref_atomic_t *, struct os_refgrp *); 62 os_ref_count_t os_ref_release_internal(os_ref_atomic_t *, struct os_refgrp *, [all …]
|
| /xnu-8796.141.3/tests/ |
| H A D | os_refcnt.c | 44 os_ref_count_t x = os_ref_release(&rc); 75 os_ref_count_t x = os_ref_release_raw(&rc, NULL); 105 os_ref_count_t x = os_ref_release_locked(&rc); 124 os_ref_count_t x = os_ref_release_locked_raw(&rc, NULL); 135 do_bitwise_test(const os_ref_count_t bits) in do_bitwise_test() 138 os_ref_count_t reserved = 0xaaaaaaaaU & ((1U << bits) - 1); in do_bitwise_test() 150 os_ref_count_t x = os_ref_release_mask(&rc, bits, NULL); in do_bitwise_test() 186 const os_ref_count_t nbits = 3; 187 const os_ref_count_t count = 5; 188 const os_ref_count_t bits = 7; [all …]
|
| /xnu-8796.141.3/osfmk/kern/ |
| H A D | task_ref.c | 93 extern void task_deallocate_internal(task_t task, os_ref_count_t refs); 338 os_ref_count_t refs = -1; in task_deallocate_grp() 543 os_ref_count_t refs = os_ref_release(&task->ref_count); in task_deallocate_grp()
|
| H A D | task.c | 503 static os_ref_count_t 511 static os_ref_count_t 1894 extern void task_deallocate_internal(task_t task, os_ref_count_t refs); 1898 os_ref_count_t refs) in task_deallocate_internal() 4173 os_ref_count_t refs; in task_add_turnstile_watchports() 4219 os_ref_count_t refs = TASK_MAX_WATCHPORT_COUNT; in task_remove_turnstile_watchports() 4271 os_ref_count_t old_refs = TASK_MAX_WATCHPORT_COUNT; in task_transfer_turnstile_watchports() 4272 os_ref_count_t new_refs = TASK_MAX_WATCHPORT_COUNT; in task_transfer_turnstile_watchports() 4377 static os_ref_count_t 4385 os_ref_count_t refs = TASK_MAX_WATCHPORT_COUNT; in task_add_turnstile_watchports_locked() [all …]
|
| H A D | debug.c | 1047 __assert_only os_ref_count_t th_ref_count; in panic_with_thread_context()
|
| /xnu-8796.141.3/osfmk/vm/ |
| H A D | device_vm.c | 104 __header_always_inline os_ref_count_t 381 os_ref_count_t ref_count; in device_pager_deallocate()
|
| H A D | vm_apple_protect.c | 814 os_ref_count_t ref_count; in apple_protect_pager_deallocate_internal() 1435 os_ref_count_t __assert_only count; in apple_protect_pager_trim()
|
| H A D | vm_swapfile_pager.c | 519 os_ref_count_t ref_count; in swapfile_pager_deallocate_internal()
|
| H A D | vm_fourk_pager.c | 388 os_ref_count_t ref_count; in fourk_pager_deallocate_internal()
|
| H A D | vm_shared_region_pager.c | 906 os_ref_count_t ref_count; in shared_region_pager_deallocate_internal()
|
| H A D | vm_dyld_pager.c | 1025 os_ref_count_t ref_count; in dyld_pager_deallocate_internal()
|
| /xnu-8796.141.3/bsd/skywalk/nexus/ |
| H A D | nexus_traffic_rule.c | 1165 os_ref_count_t count = os_ref_get_count(&ntr->ntr_refcnt); in retain_traffic_rule() 1167 os_ref_count_t, count); in retain_traffic_rule() 1177 os_ref_count_t count = os_ref_get_count(&ntr->ntr_refcnt); in release_traffic_rule() 1179 os_ref_count_t, count); in release_traffic_rule()
|
| /xnu-8796.141.3/bsd/skywalk/namespace/ |
| H A D | protons.c | 151 os_ref_count_t refcnt = os_ref_release(&pt->pt_refcnt); in protons_token_release()
|
| /xnu-8796.141.3/bsd/miscfs/devfs/ |
| H A D | devfs_tree.c | 689 os_ref_count_t rc = os_ref_get_count_raw(&dnp->dn_refcount); in devfs_dn_free() 1369 os_ref_count_t rc = os_ref_release_locked_raw(&dnp->dn_refcount, &devfs_refgrp); in devfs_rele_node()
|
| /xnu-8796.141.3/bsd/skywalk/ |
| H A D | os_stats_private.h | 1426 static inline os_ref_count_t
|
| /xnu-8796.141.3/osfmk/x86_64/ |
| H A D | pmap.c | 1743 os_ref_count_t c; in pmap_destroy()
|
| /xnu-8796.141.3/bsd/kern/ |
| H A D | sys_generic.c | 2062 const os_ref_count_t refc = os_ref_release_locked(&fp->fp_iocount); in seldrop_locked()
|
| H A D | kern_descrip.c | 1083 os_ref_count_t __unused refc = os_ref_release(&fp->fp_iocount); in fileproc_free()
|
| /xnu-8796.141.3/bsd/net/ |
| H A D | necp_client.c | 1385 os_ref_count_t count = os_ref_release_locked(&client->reference_count); in necp_client_release_locked()
|