Home
last modified time | relevance | path

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

/xnu-8019.80.24/libkern/os/
H A Drefcnt.h60 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 Drefcnt_internal.h5 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 Drefcnt.c86 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 Dos_refcnt.c67 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 Dipc_object.c193 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 Dipc_space.h125 os_ref_atomic_t is_bits; /* holds refs, active, growing */
/xnu-8019.80.24/bsd/sys/
H A Dproc_internal.h149 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 Deventvar.h339 os_ref_atomic_t kqwl_retains; /* retain references */
H A Dtty.h149 os_ref_atomic_t t_refcnt;
H A Dfile_internal.h181 os_ref_atomic_t fg_count; /* reference count */
/xnu-8019.80.24/osfmk/kern/
H A Dsync_sema.h57 os_ref_atomic_t ref_count; /* reference count */
H A Dthread.h394 os_ref_atomic_t ref_count; /* number of references to me */
/xnu-8019.80.24/bsd/miscfs/devfs/
H A Ddevfsdefs.h135 os_ref_atomic_t dn_refcount;
/xnu-8019.80.24/osfmk/vm/
H A Ddevice_vm.c101 os_ref_atomic_t dev_pgr_hdr_ref;
H A Dvm_swapfile_pager.c147 os_ref_atomic_t swp_pgr_hdr_ref; /* reference count */
H A Dvm_fourk_pager.c155 os_ref_atomic_t fourk_pgr_hdr_ref;
H A Dvm_compressor_pager.c165 os_ref_atomic_t cpgr_references;
H A Dvm_shared_region_pager.c305 os_ref_atomic_t srp_ref_count; /* active uses */
H A Dbsd_vm.c125 os_ref_atomic_t vn_pgr_hdr_ref;
H A Dvm_apple_protect.c159 os_ref_atomic_t ap_pgr_hdr_ref; /* reference count */
/xnu-8019.80.24/osfmk/mach/
H A Dmemory_object_types.h128 os_ref_atomic_t mo_ref;