Lines Matching full:objects
28 * 1) Maximum objects (capacity) is fixed after objpool creation
29 * 2) All pre-allocated objects are managed in percpu ring array,
44 * continuous memory: CPU assigned number of objects are stored just after
98 #define OBJPOOL_NR_OBJECT_MAX (1UL << 24) /* maximum numbers of total objects */
102 * objpool_init() - initialize objpool and pre-allocated objects
104 * @nr_objs: total objects to be pre-allocated by this object pool
113 * All pre-allocated objects are to be zeroed after memory allocation.
117 * objects. It's caller's duty to perform reinitialization after each
142 * be available objects in slot, which could be ensured in __objpool_try_get_slot()
220 * the same object multiple times or wrong "objects" into objpool)
242 * outstanding objects
244 * objpool_drop is normally for the release of outstanding objects
247 * all remained objects, but there are still objects being used by
255 * objpool_free() - release objpool forcely (all objects to be freed)
261 * objpool_fini() - deref object pool (also releasing unused objects)
264 * objpool_fini() will try to release all remained free objects and
265 * then drop an extra reference of the objpool. If all objects are
268 * outstanding objects (so called asynchronous use cases, such like
270 * the outstanding objects are dropped, but the caller must assure