| /xnu-11215/tests/intrusive_shared_ptr_src/ |
| H A D | test_policy.h | 27 static inline int refcount = 0; member 35 refcount = 0; in reset() 44 ++refcount; in retain() 51 --refcount; in release() 52 if (refcount == 0) { in release()
|
| H A D | reset.retain.cpp | 69 CHECK(tracking_policy::refcount == 1); in tests()
|
| /xnu-11215/osfmk/kern/ |
| H A D | kern_apfs_reflock.c | 312 uint32_t refcount = 0; in kern_apfs_reflock_try_lock() local 345 refcount = old_reflock.kern_apfs_rl_count; in kern_apfs_reflock_try_lock() 356 *refcount_when_lock = refcount; in kern_apfs_reflock_try_lock()
|
| H A D | zalloc.h | 2570 static vm_allocation_site_t site = { .refcount = 2, }; \
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_fsevents.c | 73 int32_t refcount; // number of clients referencing this member 368 kfse->refcount = 1; in kfse_init() 594 if (kfse->refcount < 1) { in add_fsevent() 1204 old_refcount = OSAddAtomic(-1, &kfse->refcount); in release_event_ref() 1216 if (kfse->refcount < 0) { in release_event_ref() 1217 panic("release_event_ref: bogus kfse refcount %d", kfse->refcount); in release_event_ref() 1220 assert(kfse->refcount == 0); in release_event_ref() 1236 &kfse->regular_event.dest->refcount) == 1) { in release_event_ref() 1465 if (kfse != NULL && kfse->type != FSE_INVALID && kfse->refcount >= 1) { in remove_watcher() 1544 OSAddAtomic(1, &kfse->refcount); in watcher_add_event() [all …]
|
| H A D | vfs_cache.c | 160 uint32_t refcount; member 3474 entry->refcount++; in add_name_internal() 3499 entry->refcount = 1; in add_name_internal() 3503 entry->refcount++; in add_name_internal() 3553 entry->refcount--; in vfs_removename() 3555 if (entry->refcount == 0) { in vfs_removename() 3572 assert(entry->refcount == 0); in vfs_removename() 3600 printf("%6d - %s\n", entry->refcount, entry->str); in dump_string_table()
|
| /xnu-11215/osfmk/tests/ |
| H A D | kernel_tests.c | 1970 kern_apfs_reflock_t refcount = NULL; in get_obj_cache() local 1983 refcount = obj->obj_refcount; in get_obj_cache() 1984 if (kern_apfs_reflock_try_get_ref(refcount, KERN_APFS_REFLOCK_IN_WILL_WAIT, &out_flags)) { in get_obj_cache() 2026 refcount = obj->obj_refcount; in get_obj_cache() 2027 if (kern_apfs_reflock_try_get_ref(refcount, KERN_APFS_REFLOCK_IN_WILL_WAIT, &out_flags)) { in get_obj_cache() 2055 ret = kern_apfs_reflock_try_lock(refcount, KERN_APFS_REFLOCK_IN_DEFAULT, NULL); in get_obj_cache() 2074 kern_apfs_reflock_unlock(refcount); in get_obj_cache() 2088 kern_apfs_reflock_t refcount = NULL; in put_obj_cache() local 2101 refcount = obj->obj_refcount; in put_obj_cache() 2137 kern_apfs_reflock_unlock(refcount); in put_obj_cache() [all …]
|
| /xnu-11215/osfmk/mach/ |
| H A D | vm_types.h | 278 int16_t refcount; member
|
| /xnu-11215/libkern/libclosure/ |
| H A D | runtime.cpp | 391 __assert_only int32_t refcount = byref->flags & BLOCK_REFCOUNT_MASK; in _Block_byref_release() local 392 os_assert(refcount); in _Block_byref_release()
|
| /xnu-11215/bsd/kern/ |
| H A D | sys_ulock.c | 413 int refcount = --ull->ull_refcount; in ull_put() local 414 assert(refcount == 0 ? (ull->ull_key.ulk_key_type == ULK_INVALID) : 1); in ull_put() 417 if (refcount > 0) { in ull_put()
|
| H A D | kern_control.c | 2038 ctl_lock(struct socket *so, int refcount, void *lr) in ctl_lock() argument 2063 if (refcount) { in ctl_lock() 2073 ctl_unlock(struct socket *so, int refcount, void *lr) in ctl_unlock() argument 2091 if (refcount) { in ctl_unlock()
|
| H A D | uipc_usrreq.c | 2840 unp_lock(struct socket *so, int refcount, void * lr) in unp_lock() argument 2861 if (refcount) { in unp_lock() 2871 unp_unlock(struct socket *so, int refcount, void * lr) in unp_unlock() argument 2883 if (refcount) { in unp_unlock()
|
| H A D | vsock_domain.c | 1455 vsock_unlock(struct socket *so, int refcount, void *lr_saved) in vsock_unlock() argument 1464 if (refcount) { in vsock_unlock()
|
| H A D | uipc_socket.c | 7264 socket_lock(struct socket *so, int refcount) in socket_lock() argument 7269 (*so->so_proto->pr_lock)(so, refcount, lr_saved); in socket_lock() 7276 if (refcount) { in socket_lock() 7313 socket_unlock(struct socket *so, int refcount) in socket_unlock() argument 7324 (*so->so_proto->pr_unlock)(so, refcount, lr_saved); in socket_unlock() 7333 if (refcount) { in socket_unlock()
|
| /xnu-11215/tools/lldbmacros/kmemory/ |
| H A D | btlog.py | 57 def refcount(self): member in BTStack
|
| /xnu-11215/bsd/sys/ |
| H A D | socketvar.h | 974 extern void socket_lock(struct socket *so, int refcount); 977 extern void socket_unlock(struct socket *so, int refcount);
|
| /xnu-11215/bsd/net/ |
| H A D | necp.c | 297 os_refcnt_t refcount; member 317 os_refcnt_t refcount; member 517 os_refcnt_t refcount; member 541 os_refcnt_t refcount; member 590 os_refcnt_t refcount; member 1729 if (os_ref_release_locked(&trie->refcount) == 0) { in necp_session_remove_all_domain_tries() 5899 os_ref_retain_locked(&existing_mapping->refcount); in necp_create_string_to_id_mapping() 6008 os_ref_init(&new_filter->refcount, &necp_refgrp); in necp_create_domain_filter() 6108 os_ref_init(&new_trie->refcount, &necp_refgrp); in necp_create_domain_trie() 6497 os_ref_retain_locked(&existing_rule->refcount); in necp_create_route_rule() [all …]
|
| /xnu-11215/bsd/netinet/ |
| H A D | raw_ip.c | 1166 rip_unlock(struct socket *so, int refcount, void *debug) in rip_unlock() argument 1177 if (refcount) { in rip_unlock()
|
| H A D | tcp_subr.c | 3243 tcp_lock(struct socket *so, int refcount, void *lr) in tcp_lock() argument 3259 socket_lock(mp_so, refcount); in tcp_lock() 3266 socket_unlock(mp_so, refcount); in tcp_lock() 3293 if (refcount) { in tcp_lock() 3302 tcp_unlock(struct socket *so, int refcount, void *lr) in tcp_unlock() argument 3319 if (refcount) { in tcp_unlock() 3342 socket_unlock(mp_so, refcount); in tcp_unlock()
|
| H A D | udp_usrreq.c | 2625 udp_lock(struct socket *so, int refcount, void *debug) in udp_lock() argument 2644 if (refcount) { in udp_lock() 2654 udp_unlock(struct socket *so, int refcount, void *debug) in udp_unlock() argument 2664 if (refcount) { in udp_unlock()
|
| H A D | mptcp_subr.c | 4966 mptcp_lock(struct socket *mp_so, int refcount, void *lr) in mptcp_lock() argument 4990 if (refcount != 0) { in mptcp_lock() 5004 mptcp_unlock(struct socket *mp_so, int refcount, void *lr) in mptcp_unlock() argument 5023 if (refcount != 0) { in mptcp_unlock()
|
| /xnu-11215/iokit/IOKit/pwr_mgt/ |
| H A D | RootDomain.h | 809 uint32_t refcount; member
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_resident.c | 1076 vm_allocation_sites_static[t].refcount = 2; in vm_page_bootstrap() 1080 vm_allocation_sites_static[VM_KERN_MEMORY_FIRST_DYNAMIC].refcount = 2; in vm_page_bootstrap() 9436 if (1 != prev->refcount) { in vm_tag_alloc_locked() 9454 OSAddAtomic16(1, &site->refcount); in vm_tag_alloc_locked() 9804 allocation->refcount = 1; in kern_allocation_name_allocate() 9816 assert(allocation->refcount > 0); in kern_allocation_name_release() 9817 if (1 == OSAddAtomic16(-1, &allocation->refcount)) { in kern_allocation_name_release()
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | process.py | 1343 refcount = int(uthread.uu_proc_refcount) 1348 if refcount == 0:
|
| /xnu-11215/doc/allocators/ |
| H A D | api-basics.md | 264 <tt>hdr_type_t</tt> can't contain a refcount,
|