Lines Matching full:reference
41 .Nd manage a simple reference counter
64 functions provide an API to manage a simple reference counter.
77 It is normally used when creating a reference-counted object.
91 function is used to acquire a new reference.
92 It returns the counter value before the new reference was acquired.
93 The caller is responsible for ensuring that it holds a valid reference
94 while obtaining a new reference.
96 if an object is stored on a list and the list holds a reference on the
98 protection for acquiring a new reference.
109 if the reference was sucessfully obtained, and
117 which only obtains the reference when some reference already exists.
129 function is used to release an existing reference.
130 The function returns true if the reference being released was
131 the last reference;
140 which only drop the reference when it is or is not the last reference,
164 is equal to one, the reference is not released and the function returns
173 objects including explicitly releasing any resources when the last reference
179 .Xr atomic 9 ) before releasing the reference, which
185 the last reference was dropped, sees all updates done during the lifetime
190 function returns true when releasing the last reference and false when
191 releasing any other reference.