Lines Matching defs:refcount_t
59 } refcount_t;
61 /* Note: refcount_t must be initialized with refcount_create[_untracked]() */
63 void refcount_create(refcount_t *rc);
64 void refcount_create_untracked(refcount_t *rc);
65 void refcount_create_tracked(refcount_t *rc);
66 void refcount_destroy(refcount_t *rc);
67 void refcount_destroy_many(refcount_t *rc, uint64_t number);
68 int refcount_is_zero(refcount_t *rc);
69 int64_t refcount_count(refcount_t *rc);
70 int64_t refcount_add(refcount_t *rc, void *holder_tag);
71 int64_t refcount_remove(refcount_t *rc, void *holder_tag);
72 int64_t refcount_add_many(refcount_t *rc, uint64_t number, void *holder_tag);
73 int64_t refcount_remove_many(refcount_t *rc, uint64_t number, void *holder_tag);
74 void refcount_transfer(refcount_t *dst, refcount_t *src);
75 void refcount_transfer_ownership(refcount_t *, void *, void *);
76 boolean_t refcount_held(refcount_t *, void *);
77 boolean_t refcount_not_held(refcount_t *, void *);
86 } refcount_t;