| /xnu-8019.80.24/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; 21 os_ref_atomic_t grp_children; /* number of refcount objects in group */ 22 os_ref_atomic_t grp_count; /* current reference count of group */ 47 void os_ref_init_count_external(os_ref_atomic_t *, struct os_refgrp *, os_ref_count_t); 48 void os_ref_retain_external(os_ref_atomic_t *, struct os_refgrp *); 49 void os_ref_retain_locked_external(os_ref_atomic_t *, struct os_refgrp *); 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 *); [all …]
|
| H A D | refcnt.c | 86 os_ref_check_overflow(os_ref_atomic_t *rc, os_ref_count_t count) in os_ref_check_overflow() 94 os_ref_check_retain(os_ref_atomic_t *rc, os_ref_count_t count, os_ref_count_t n) in os_ref_check_retain() 216 ref_attach_to_group(os_ref_atomic_t *rc, struct os_refgrp *grp, os_ref_count_t init_count) in ref_attach_to_group() 276 ref_init_debug(os_ref_atomic_t *rc, struct os_refgrp * __debug_only grp, os_ref_count_t count) in ref_init_debug() 287 ref_retain_debug(os_ref_atomic_t *rc, struct os_refgrp * __debug_only grp) in ref_retain_debug() 295 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() 308 __os_ref_retain(os_ref_atomic_t *rc, os_ref_count_t f, in __os_ref_retain() 322 os_ref_retain_internal(os_ref_atomic_t *rc, struct os_refgrp *grp) in os_ref_retain_internal() 328 os_ref_retain_floor_internal(os_ref_atomic_t *rc, os_ref_count_t f, in os_ref_retain_floor_internal() 335 __os_ref_retain_try(os_ref_atomic_t *rc, os_ref_count_t f, in __os_ref_retain_try() [all …]
|
| /xnu-8019.80.24/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-8019.80.24/osfmk/ipc/ |
| H A D | ipc_object.c | 193 static_assert(sizeof(os_ref_atomic_t) == sizeof(io->io_references)); in ipc_object_reference() 194 os_ref_retain_raw((os_ref_atomic_t *)&io->io_references, NULL); in ipc_object_reference() 211 if (os_ref_release_raw((os_ref_atomic_t *)&io->io_references, NULL) == 0) { in ipc_object_release() 227 if (os_ref_release_raw((os_ref_atomic_t *)&io->io_references, NULL) == 0) { in ipc_object_release_safe() 246 os_ref_release_live_raw((os_ref_atomic_t *)&io->io_references, NULL); in ipc_object_release_live()
|
| H A D | ipc_space.h | 125 os_ref_atomic_t is_bits; /* holds refs, active, growing */
|
| /xnu-8019.80.24/bsd/sys/ |
| H A D | proc_internal.h | 149 os_ref_atomic_t s_refcount; 201 os_ref_atomic_t pg_refcount; 202 os_ref_atomic_t pg_hashref; 323 os_ref_atomic_t p_refcount; /* number of outstanding users */ 324 os_ref_atomic_t p_waitref; /* number of users pending transition */
|
| H A D | eventvar.h | 339 os_ref_atomic_t kqwl_retains; /* retain references */
|
| H A D | tty.h | 149 os_ref_atomic_t t_refcnt;
|
| H A D | file_internal.h | 181 os_ref_atomic_t fg_count; /* reference count */
|
| /xnu-8019.80.24/osfmk/kern/ |
| H A D | sync_sema.h | 57 os_ref_atomic_t ref_count; /* reference count */
|
| H A D | thread.h | 394 os_ref_atomic_t ref_count; /* number of references to me */
|
| /xnu-8019.80.24/bsd/miscfs/devfs/ |
| H A D | devfsdefs.h | 135 os_ref_atomic_t dn_refcount;
|
| /xnu-8019.80.24/osfmk/vm/ |
| H A D | device_vm.c | 101 os_ref_atomic_t dev_pgr_hdr_ref;
|
| H A D | vm_swapfile_pager.c | 147 os_ref_atomic_t swp_pgr_hdr_ref; /* reference count */
|
| H A D | vm_fourk_pager.c | 155 os_ref_atomic_t fourk_pgr_hdr_ref;
|
| H A D | vm_compressor_pager.c | 165 os_ref_atomic_t cpgr_references;
|
| H A D | vm_shared_region_pager.c | 305 os_ref_atomic_t srp_ref_count; /* active uses */
|
| H A D | bsd_vm.c | 125 os_ref_atomic_t vn_pgr_hdr_ref;
|
| H A D | vm_apple_protect.c | 159 os_ref_atomic_t ap_pgr_hdr_ref; /* reference count */
|
| /xnu-8019.80.24/osfmk/mach/ |
| H A D | memory_object_types.h | 128 os_ref_atomic_t mo_ref;
|