Home
last modified time | relevance | path

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

/xnu-8796.141.3/libkern/os/
H A Drefcnt.h59 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 Drefcnt.c13 #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 Drefcnt_internal.h46 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 Dos_refcnt.c44 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 Dtask_ref.c93 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 Dtask.c503 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 Ddebug.c1047 __assert_only os_ref_count_t th_ref_count; in panic_with_thread_context()
/xnu-8796.141.3/osfmk/vm/
H A Ddevice_vm.c104 __header_always_inline os_ref_count_t
381 os_ref_count_t ref_count; in device_pager_deallocate()
H A Dvm_apple_protect.c814 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 Dvm_swapfile_pager.c519 os_ref_count_t ref_count; in swapfile_pager_deallocate_internal()
H A Dvm_fourk_pager.c388 os_ref_count_t ref_count; in fourk_pager_deallocate_internal()
H A Dvm_shared_region_pager.c906 os_ref_count_t ref_count; in shared_region_pager_deallocate_internal()
H A Dvm_dyld_pager.c1025 os_ref_count_t ref_count; in dyld_pager_deallocate_internal()
/xnu-8796.141.3/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c1165 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 Dprotons.c151 os_ref_count_t refcnt = os_ref_release(&pt->pt_refcnt); in protons_token_release()
/xnu-8796.141.3/bsd/miscfs/devfs/
H A Ddevfs_tree.c689 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 Dos_stats_private.h1426 static inline os_ref_count_t
/xnu-8796.141.3/osfmk/x86_64/
H A Dpmap.c1743 os_ref_count_t c; in pmap_destroy()
/xnu-8796.141.3/bsd/kern/
H A Dsys_generic.c2062 const os_ref_count_t refc = os_ref_release_locked(&fp->fp_iocount); in seldrop_locked()
H A Dkern_descrip.c1083 os_ref_count_t __unused refc = os_ref_release(&fp->fp_iocount); in fileproc_free()
/xnu-8796.141.3/bsd/net/
H A Dnecp_client.c1385 os_ref_count_t count = os_ref_release_locked(&client->reference_count); in necp_client_release_locked()