Home
last modified time | relevance | path

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

/xnu-11215/libkern/os/
H A Drefcnt.h60 typedef uint32_t os_ref_count_t; typedef
61 typedef _Atomic(os_ref_count_t) os_ref_atomic_t;
128 static os_ref_count_t os_ref_release(struct os_refcnt *) OS_WARN_RESULT;
157 static os_ref_count_t os_ref_get_count(struct os_refcnt *rc);
248 extern os_ref_count_t os_pcpu_ref_count(os_pcpu_ref_t ref);
300 static void os_ref_retain_floor(struct os_refcnt *, os_ref_count_t f)
315 static os_ref_count_t os_ref_get_count_raw(os_ref_atomic_t *rc);
344 os_ref_count_t init_count, uint32_t init_bits)
351 static os_ref_count_t os_ref_get_count_mask(os_ref_atomic_t *rc, uint32_t b);
368 static os_ref_count_t
[all …]
H A Drefcnt_internal.h96 static inline os_ref_count_t
115 static inline os_ref_count_t OS_WARN_RESULT
194 static inline os_ref_count_t
200 static inline os_ref_count_t
247 static inline os_ref_count_t
253 static inline os_ref_count_t
293 static inline os_ref_count_t
307 static inline os_ref_count_t
363 static inline os_ref_count_t
407 static inline os_ref_count_t
[all …]
H A Drefcnt.c78 os_ref_check_underflow(void *rc, os_ref_count_t count, os_ref_count_t n) in os_ref_check_underflow()
301 static os_ref_count_t
394 os_ref_count_t val; in _os_ref_release_inline()
429 static os_ref_count_t
443 os_ref_count_t
454 os_ref_count_t
468 os_ref_count_t
510 os_ref_count_t
793 os_ref_count_t
978 os_ref_count_t in os_ref_count_t() function
[all …]
/xnu-11215/tests/
H A Dos_refcnt.c87 os_ref_count_t x = os_ref_release(&rc);
155 os_ref_count_t x = os_ref_release_raw(&rc, NULL);
185 os_ref_count_t x = os_ref_release_locked(&rc);
215 do_bitwise_test(const os_ref_count_t bits) in do_bitwise_test()
266 const os_ref_count_t nbits = 3;
267 const os_ref_count_t count = 5;
268 const os_ref_count_t bits = 7;
271 os_ref_count_t mask = (1U << nbits) - 1;
301 os_ref_count_t x = os_ref_release(&rc);
382 os_ref_count_t n = os_ref_release_raw(&rc, NULL);
[all …]
/xnu-11215/osfmk/kern/
H A Dtask_ref.c93 extern void task_deallocate_internal(task_t task, os_ref_count_t refs);
342 os_ref_count_t refs = -1; in task_deallocate_grp()
547 os_ref_count_t refs = os_ref_release(&task->ref_count); in task_deallocate_grp()
H A Dtask.c584 static os_ref_count_t
592 static os_ref_count_t
2056 os_ref_count_t refs) in task_deallocate_internal()
4537 os_ref_count_t refs; in task_add_turnstile_watchports()
4583 os_ref_count_t refs = TASK_MAX_WATCHPORT_COUNT; in task_remove_turnstile_watchports()
4635 os_ref_count_t old_refs = TASK_MAX_WATCHPORT_COUNT; in task_transfer_turnstile_watchports()
4741 static os_ref_count_t
4749 os_ref_count_t refs = TASK_MAX_WATCHPORT_COUNT; in task_add_turnstile_watchports_locked()
4809 static os_ref_count_t
4815 os_ref_count_t refs = TASK_MAX_WATCHPORT_COUNT; in task_remove_turnstile_watchports_locked()
[all …]
H A Depoch_sync.c275 os_ref_count_t cnt = 0; in esync_put()
H A Ddebug.c1164 __assert_only os_ref_count_t th_ref_count; in panic_with_thread_context()
/xnu-11215/osfmk/vm/
H A Ddevice_vm.c107 __header_always_inline os_ref_count_t
393 os_ref_count_t ref_count; in device_pager_deallocate()
H A Dvm_apple_protect.c816 os_ref_count_t ref_count; in apple_protect_pager_deallocate_internal()
1437 os_ref_count_t __assert_only count; in apple_protect_pager_trim()
H A Dvm_swapfile_pager.c521 os_ref_count_t ref_count; in swapfile_pager_deallocate_internal()
H A Dvm_shared_region_pager.c938 os_ref_count_t ref_count; in shared_region_pager_deallocate_internal()
H A Dvm_dyld_pager.c1206 os_ref_count_t ref_count; in dyld_pager_deallocate_internal()
H A Dvm_object.c1377 os_ref_count_t ref_count; in vm_object_reap()
/xnu-11215/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c1211 os_ref_count_t count = os_ref_get_count(&ntr->ntr_refcnt); in retain_traffic_rule()
1213 os_ref_count_t, count); in retain_traffic_rule()
1223 os_ref_count_t count = os_ref_get_count(&ntr->ntr_refcnt); in release_traffic_rule()
1225 os_ref_count_t, count); in release_traffic_rule()
/xnu-11215/bsd/skywalk/namespace/
H A Dprotons.c151 os_ref_count_t refcnt = os_ref_release(&pt->pt_refcnt); in protons_token_release()
/xnu-11215/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-11215/bsd/skywalk/
H A Dos_stats_private.h1447 static inline os_ref_count_t
/xnu-11215/osfmk/x86_64/
H A Dpmap.c1743 os_ref_count_t c; in pmap_destroy()
/xnu-11215/bsd/kern/
H A Dsys_generic.c2058 const os_ref_count_t refc = os_ref_release_locked(&fp->fp_iocount); in seldrop_locked()
H A Dkern_credential.c3330 static inline os_ref_count_t
H A Dkern_descrip.c1124 os_ref_count_t refc = os_ref_release(&fp->fp_iocount); in fileproc_free()
/xnu-11215/bsd/net/
H A Dnecp_client.c1506 os_ref_count_t count = os_ref_release_locked(&client->reference_count); in necp_client_release_locked()