Lines Matching full:object
38 * object range.
44 * an object requires specific handling.
90 * which include stack traces to the user of the object, the original allocation
96 * Allocate a KFENCE object. Allocators must not call this function directly,
102 * kfence_alloc() - allocate a KFENCE object with a low probability
103 * @s: struct kmem_cache with object requirements
104 * @size: exact size of the object to allocate (can be less than @s->size
110 * * non-NULL - pointer to a KFENCE object.
132 * kfence_ksize() - get actual amount of memory allocated for a KFENCE object
133 * @addr: pointer to a heap object
136 * * 0 - not a KFENCE object, must call __ksize() instead,
139 * kfence_ksize() returns the number of bytes requested for a KFENCE object at
140 * allocation time. This number may be less than the object size of the
146 * kfence_object_start() - find the beginning of a KFENCE object
147 * @addr: address within a KFENCE-allocated object
149 * Return: address of the beginning of the object.
152 * easy to calculate the beginning of an object given a pointer inside it and
153 * the object size. The same is not true for KFENCE, which places a single
154 * object at either end of the page. This helper function is used to find the
155 * beginning of a KFENCE-allocated object.
160 * __kfence_free() - release a KFENCE heap object to KFENCE pool
161 * @addr: object to be freed
165 * Release a KFENCE object and mark it as freed.
170 * kfence_free() - try to release an arbitrary heap object to KFENCE pool
171 * @addr: object to be freed
174 * * false - object doesn't belong to KFENCE pool and was ignored,
175 * * true - object was released to KFENCE pool.
177 * Release a KFENCE object and mark it as freed. May be called on any object,
180 * determine if it was a KFENCE object or not.
212 * @object: the object
215 * * false - not a KFENCE object
216 * * true - a KFENCE object, filled @kpp
220 bool __kfence_obj_info(struct kmem_obj_info *kpp, void *object, struct slab *slab);
242 static inline bool __kfence_obj_info(struct kmem_obj_info *kpp, void *object, struct slab *slab) in __kfence_obj_info() argument