Lines Matching full:reference
10 * file_ref is a reference count implementation specifically for use by
55 * file_ref_init - Initialize a file reference count
56 * @ref: Pointer to the reference count
57 * @cnt: The initial reference count typically '1'
67 * file_ref_get - Acquire one reference on a file
68 * @ref: Pointer to the reference count
74 * Return: False if the attempt to acquire a reference failed. This happens
75 * when the last reference has been put already. True if a reference
81 * Unconditionally increase the reference count with full in file_ref_get()
87 * Hence, unconditionally altering the file reference count to in file_ref_get()
88 * e.g., reset the file reference count back to the middle of in file_ref_get()
112 * file_ref_inc - Acquire one reference on a file
113 * @ref: Pointer to the reference count
115 * Acquire an additional reference on a file. Warns if the caller didn't
116 * already hold a reference.
121 WARN_ONCE(prior < 0, "file_ref_inc() on a released file reference"); in file_ref_inc()
125 * file_ref_put -- Release a file reference
126 * @ref: Pointer to the reference count
132 * Return: True if this was the last reference with no future references
134 * the object which is protected by the reference counter.
152 * Unconditionally decrease the reference count. The saturation in file_ref_put()
154 * fails then we need to handle the last reference drop and in file_ref_put()
165 * @ref: Pointer to the reference count