| /xnu-8796.141.3/libkern/os/ |
| H A D | refcnt.h | 60 typedef _Atomic(os_ref_count_t) os_ref_atomic_t; typedef 170 static void os_ref_init_count_raw(os_ref_atomic_t *, struct os_refgrp *, os_ref_count_t count) 174 static void os_ref_retain_raw(os_ref_atomic_t *, struct os_refgrp *); 175 static void os_ref_retain_floor_raw(os_ref_atomic_t *, os_ref_count_t f, struct os_refgrp *) 177 static os_ref_count_t os_ref_release_raw(os_ref_atomic_t *, struct os_refgrp *) OS_WARN_RESULT; 178 static os_ref_count_t os_ref_release_raw_relaxed(os_ref_atomic_t *, struct os_refgrp *) OS_WARN_RES… 179 static void os_ref_release_live_raw(os_ref_atomic_t *, struct os_refgrp *); 180 static bool os_ref_retain_try_raw(os_ref_atomic_t *, struct os_refgrp *) OS_WARN_RESULT; 181 static bool os_ref_retain_floor_try_raw(os_ref_atomic_t *, os_ref_count_t f, struct os_refgrp *) OS… 183 static void os_ref_retain_locked_raw(os_ref_atomic_t *, struct os_refgrp *); [all …]
|
| H A D | refcnt_internal.h | 5 os_ref_atomic_t ref_count; 20 os_ref_atomic_t grp_children; /* number of refcount objects in group */ 21 os_ref_atomic_t grp_count; /* current reference count of group */ 46 void os_ref_init_count_external(os_ref_atomic_t *, struct os_refgrp *, os_ref_count_t); 47 void os_ref_retain_external(os_ref_atomic_t *, struct os_refgrp *); 48 void os_ref_retain_locked_external(os_ref_atomic_t *, struct os_refgrp *); 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 *); [all …]
|
| H A D | refcnt.c | 63 os_ref_panic_retain(os_ref_atomic_t *rc) in os_ref_panic_retain() 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() 281 ref_retain_debug(os_ref_atomic_t *rc, struct os_refgrp * __debug_only grp) in ref_retain_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() 316 os_ref_retain_internal(os_ref_atomic_t *rc, struct os_refgrp *grp) in os_ref_retain_internal() 322 os_ref_retain_floor_internal(os_ref_atomic_t *rc, os_ref_count_t f, in os_ref_retain_floor_internal() [all …]
|
| /xnu-8796.141.3/tests/ |
| H A D | os_refcnt.c | 67 os_ref_atomic_t rc; 117 os_ref_atomic_t rc; 137 os_ref_atomic_t rc; in do_bitwise_test() 184 os_ref_atomic_t rc = 0xaaaaaaaa; 269 os_ref_atomic_t rc; 285 os_ref_atomic_t rc; 300 os_ref_atomic_t rc; 318 os_ref_atomic_t rc; 335 os_ref_atomic_t rca = OS_REF_ATOMIC_INITIALIZER;
|
| /xnu-8796.141.3/osfmk/ipc/ |
| H A D | ipc_object.c | 190 static_assert(sizeof(os_ref_atomic_t) == sizeof(io->io_references)); in ipc_object_reference() 191 os_ref_retain_raw((os_ref_atomic_t *)&io->io_references, NULL); in ipc_object_reference() 208 if (os_ref_release_raw((os_ref_atomic_t *)&io->io_references, NULL) == 0) { in ipc_object_release() 224 if (os_ref_release_raw((os_ref_atomic_t *)&io->io_references, NULL) == 0) { in ipc_object_release_safe() 243 os_ref_release_live_raw((os_ref_atomic_t *)&io->io_references, NULL); in ipc_object_release_live()
|
| H A D | ipc_voucher.h | 74 os_ref_atomic_t iv_refs; /* reference count */
|
| H A D | ipc_space.h | 125 os_ref_atomic_t is_bits; /* holds refs, active, growing */
|
| /xnu-8796.141.3/bsd/sys/ |
| H A D | proc_internal.h | 149 os_ref_atomic_t s_refcount; 200 os_ref_atomic_t pg_refcount; 201 os_ref_atomic_t pg_hashref; 311 os_ref_atomic_t p_refcount; /* number of outstanding users */ 312 os_ref_atomic_t p_waitref; /* number of users pending transition */
|
| H A D | tty.h | 149 os_ref_atomic_t t_refcnt;
|
| H A D | eventvar.h | 339 os_ref_atomic_t kqwl_retains; /* retain references */
|
| H A D | file_internal.h | 181 os_ref_atomic_t fg_count; /* reference count */
|
| /xnu-8796.141.3/osfmk/kern/ |
| H A D | sync_sema.h | 57 os_ref_atomic_t ref_count; /* reference count */
|
| H A D | lock_group.h | 168 os_ref_atomic_t lck_grp_refcnt;
|
| H A D | turnstile.h | 349 os_ref_atomic_t ts_refcount; /* reference count for turnstiles */
|
| /xnu-8796.141.3/bsd/miscfs/devfs/ |
| H A D | devfsdefs.h | 135 os_ref_atomic_t dn_refcount;
|
| /xnu-8796.141.3/osfmk/bank/ |
| H A D | bank_internal.h | 58 os_ref_atomic_t be_refs; /* Ref count */
|
| /xnu-8796.141.3/osfmk/vm/ |
| H A D | device_vm.c | 98 os_ref_atomic_t dev_pgr_hdr_ref;
|
| H A D | vm_swapfile_pager.c | 136 os_ref_atomic_t swp_pgr_hdr_ref; /* reference count */
|
| H A D | vm_fourk_pager.c | 146 os_ref_atomic_t fourk_pgr_hdr_ref;
|
| H A D | vm_compressor_pager.c | 149 os_ref_atomic_t cpgr_references;
|
| H A D | vm_shared_region_pager.c | 294 os_ref_atomic_t srp_ref_count; /* active uses */
|
| H A D | bsd_vm.c | 99 os_ref_atomic_t vn_pgr_hdr_ref;
|
| H A D | vm_apple_protect.c | 150 os_ref_atomic_t ap_pgr_hdr_ref; /* reference count */
|
| H A D | vm_dyld_pager.c | 141 os_ref_atomic_t dyld_ref_count; /* active uses */
|
| /xnu-8796.141.3/osfmk/mach/ |
| H A D | memory_object_types.h | 128 os_ref_atomic_t mo_ref;
|