Lines Matching full:variable
11 * DOC: Shadow variable API concurrency notes:
13 * The shadow variable API provides a simple relationship between an
17 * Once a shadow variable is attached to its parent object via the
19 * call to klp_shadow_get() may then return the shadow variable's data
24 * variable structures. Their implementation does not call kmalloc
47 * struct klp_shadow - shadow variable structure
63 * klp_shadow_match() - verify a shadow variable matches given <obj, id>
64 * @shadow: shadow variable to match
68 * Return: true if the shadow variable matches.
77 * klp_shadow_get() - retrieve a shadow variable data pointer
81 * Return: the shadow variable data element, NULL on failure.
113 /* Check if the shadow variable already exists */ in __klp_shadow_get_or_alloc()
119 * Allocate a new shadow variable. Fill it with zeroes by default. in __klp_shadow_get_or_alloc()
132 * Shadow variable was found, throw away speculative in __klp_shadow_get_or_alloc()
150 pr_err("Failed to construct shadow variable <%p, %lx> (%d)\n", in __klp_shadow_get_or_alloc()
165 WARN(1, "Duplicate shadow variable <%p, %lx>\n", obj, id); in __klp_shadow_get_or_alloc()
173 * klp_shadow_alloc() - allocate and add a new shadow variable
181 * Allocates @size bytes for new shadow variable data using @gfp_flags.
183 * function if it is not NULL. The new shadow variable is then added
186 * If an existing <obj, id> shadow variable can be found, this routine will
190 * the variable did not exist before. The cost is that @ctor is called
193 * Return: the shadow variable data element, NULL on duplicate or
206 * klp_shadow_get_or_alloc() - get existing or allocate a new shadow variable
215 * variable is already present. Otherwise, it creates a new shadow
216 * variable like klp_shadow_alloc().
218 * This function guarantees that only one shadow variable exists with the given
220 * will be called only when the variable did not exist before. The cost is
223 * Return: the shadow variable data element, NULL on failure.
244 * klp_shadow_free() - detach and free a <obj, id> shadow variable
247 * @dtor: custom callback that can be used to unregister the variable
248 * and/or free data that the shadow variable points to (optional)
250 * This function releases the memory for this <obj, id> shadow variable
277 * @dtor: custom callback that can be used to unregister the variable
278 * and/or free data that the shadow variable points to (optional)
280 * This function releases the memory for all <_, id> shadow variable