| /xnu-8020.140.41/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) 76 os_ref_check_underflow(void *rc, os_ref_count_t count, os_ref_count_t n) in os_ref_check_underflow() 84 os_ref_check_overflow(os_ref_atomic_t *rc, os_ref_count_t count) in os_ref_check_overflow() 92 os_ref_check_retain(os_ref_atomic_t *rc, os_ref_count_t count, os_ref_count_t n) in os_ref_check_retain() 214 ref_attach_to_group(os_ref_atomic_t *rc, struct os_refgrp *grp, os_ref_count_t init_count) in ref_attach_to_group() 274 ref_init_debug(os_ref_atomic_t *rc, struct os_refgrp * __debug_only grp, os_ref_count_t count) in ref_init_debug() 278 for (os_ref_count_t i = 0; i < count; i++) { in ref_init_debug() 293 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() 306 __os_ref_retain(os_ref_atomic_t *rc, os_ref_count_t f, in __os_ref_retain() 309 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 | 47 void os_ref_init_count_external(os_ref_atomic_t *, struct os_refgrp *, os_ref_count_t); 50 os_ref_count_t os_ref_release_external(os_ref_atomic_t *, struct os_refgrp *, 52 os_ref_count_t os_ref_release_relaxed_external(os_ref_atomic_t *, struct os_refgrp *); 53 os_ref_count_t os_ref_release_barrier_external(os_ref_atomic_t *, struct os_refgrp *); 54 os_ref_count_t os_ref_release_locked_external(os_ref_atomic_t *, struct os_refgrp *); 58 void os_ref_init_count_internal(os_ref_atomic_t *, struct os_refgrp *, os_ref_count_t); 60 void os_ref_retain_floor_internal(os_ref_atomic_t *, os_ref_count_t, struct os_refgrp *); 61 os_ref_count_t os_ref_release_relaxed_internal(os_ref_atomic_t *, struct os_refgrp *); 62 os_ref_count_t os_ref_release_barrier_internal(os_ref_atomic_t *, struct os_refgrp *); 63 os_ref_count_t os_ref_release_internal(os_ref_atomic_t *, struct os_refgrp *, [all …]
|
| /xnu-8020.140.41/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-8020.140.41/osfmk/kern/ |
| H A D | task_ref.c | 93 extern void task_deallocate_internal(task_t task, os_ref_count_t refs); 337 os_ref_count_t refs = -1; in task_deallocate_grp() 541 os_ref_count_t refs = os_ref_release(&task->ref_count); in task_deallocate_grp()
|
| H A D | task.c | 490 static os_ref_count_t 498 static os_ref_count_t 1844 extern void task_deallocate_internal(task_t task, os_ref_count_t refs); 1848 os_ref_count_t refs) in task_deallocate_internal() 4078 os_ref_count_t refs; in task_add_turnstile_watchports() 4124 os_ref_count_t refs = TASK_MAX_WATCHPORT_COUNT; in task_remove_turnstile_watchports() 4176 os_ref_count_t old_refs = TASK_MAX_WATCHPORT_COUNT; in task_transfer_turnstile_watchports() 4177 os_ref_count_t new_refs = TASK_MAX_WATCHPORT_COUNT; in task_transfer_turnstile_watchports() 4282 static os_ref_count_t 4290 os_ref_count_t refs = TASK_MAX_WATCHPORT_COUNT; in task_add_turnstile_watchports_locked() [all …]
|
| H A D | debug.c | 950 __assert_only os_ref_count_t th_ref_count; in panic_with_thread_context()
|
| /xnu-8020.140.41/osfmk/vm/ |
| H A D | device_vm.c | 107 __header_always_inline os_ref_count_t 384 os_ref_count_t ref_count; in device_pager_deallocate()
|
| H A D | vm_apple_protect.c | 832 os_ref_count_t ref_count; in apple_protect_pager_deallocate_internal() 1467 os_ref_count_t __assert_only count; in apple_protect_pager_trim()
|
| H A D | vm_swapfile_pager.c | 540 os_ref_count_t ref_count; in swapfile_pager_deallocate_internal()
|
| H A D | vm_fourk_pager.c | 407 os_ref_count_t ref_count; in fourk_pager_deallocate_internal()
|
| H A D | vm_shared_region_pager.c | 925 os_ref_count_t ref_count; in shared_region_pager_deallocate_internal()
|
| /xnu-8020.140.41/bsd/skywalk/namespace/ |
| H A D | protons.c | 152 os_ref_count_t refcnt = os_ref_release(&pt->pt_refcnt); in protons_token_release()
|
| /xnu-8020.140.41/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() 1366 os_ref_count_t rc = os_ref_release_locked_raw(&dnp->dn_refcount, &devfs_refgrp); in devfs_rele_node()
|
| /xnu-8020.140.41/bsd/skywalk/ |
| H A D | os_stats_private.h | 1360 static inline os_ref_count_t
|
| /xnu-8020.140.41/osfmk/ipc/ |
| H A D | ipc_voucher.c | 294 os_ref_count_t cnt __assert_only = os_ref_release(&iv->iv_refs); in iv_dealloc()
|
| /xnu-8020.140.41/bsd/kern/ |
| H A D | sys_generic.c | 2125 const os_ref_count_t refc = os_ref_release_locked(&fp->fp_iocount); in seldrop_locked()
|
| H A D | kern_descrip.c | 1019 os_ref_count_t __unused refc = os_ref_release(&fp->fp_iocount); in fileproc_free()
|
| /xnu-8020.140.41/osfmk/x86_64/ |
| H A D | pmap.c | 1732 os_ref_count_t c; in pmap_destroy()
|
| /xnu-8020.140.41/bsd/nfs/ |
| H A D | nfs4_vnops.c | 2082 os_ref_count_t newcount; in nfs_open_owner_rele() 3344 os_ref_count_t newcount; in nfs_lock_owner_find() 3444 os_ref_count_t newcount; in nfs_lock_owner_rele()
|
| H A D | nfs_vfsops.c | 4583 os_ref_count_t newcount; in nfs_mount_zombie()
|
| /xnu-8020.140.41/bsd/net/ |
| H A D | necp_client.c | 1378 os_ref_count_t count = os_ref_release_locked(&client->reference_count); in necp_client_release_locked()
|