Lines Matching full:object
38 * object range.
44 * an object requires specific handling.
91 * which include stack traces to the user of the object, the original allocation
97 * Allocate a KFENCE object. Allocators must not call this function directly,
103 * kfence_alloc() - allocate a KFENCE object with a low probability
104 * @s: struct kmem_cache with object requirements
105 * @size: exact size of the object to allocate (can be less than @s->size
111 * * non-NULL - pointer to a KFENCE object.
133 * kfence_ksize() - get actual amount of memory allocated for a KFENCE object
134 * @addr: pointer to a heap object
137 * * 0 - not a KFENCE object, must call __ksize() instead,
140 * kfence_ksize() returns the number of bytes requested for a KFENCE object at
141 * allocation time. This number may be less than the object size of the
147 * kfence_object_start() - find the beginning of a KFENCE object
148 * @addr: address within a KFENCE-allocated object
150 * Return: address of the beginning of the object.
153 * easy to calculate the beginning of an object given a pointer inside it and
154 * the object size. The same is not true for KFENCE, which places a single
155 * object at either end of the page. This helper function is used to find the
156 * beginning of a KFENCE-allocated object.
161 * __kfence_free() - release a KFENCE heap object to KFENCE pool
162 * @addr: object to be freed
166 * Release a KFENCE object and mark it as freed.
171 * kfence_free() - try to release an arbitrary heap object to KFENCE pool
172 * @addr: object to be freed
175 * * false - object doesn't belong to KFENCE pool and was ignored,
176 * * true - object was released to KFENCE pool.
178 * Release a KFENCE object and mark it as freed. May be called on any object,
181 * determine if it was a KFENCE object or not.
213 * @object: the object
216 * * false - not a KFENCE object
217 * * true - a KFENCE object, filled @kpp
221 bool __kfence_obj_info(struct kmem_obj_info *kpp, void *object, struct slab *slab);
245 static inline bool __kfence_obj_info(struct kmem_obj_info *kpp, void *object, struct slab *slab) in __kfence_obj_info() argument