#include <linux/objpool.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/atomic.h>
#include <linux/irqflags.h>
#include <linux/cpumask.h>
#include <linux/log2.h>
static int
objpool_init_percpu_slot(struct objpool_head *pool,
struct objpool_slot *slot,
int nodes, void *context,
objpool_init_obj_cb objinit)
{ … }
static int
objpool_init_percpu_slots(struct objpool_head *pool, int nr_objs,
void *context, objpool_init_obj_cb objinit)
{ … }
static void objpool_fini_percpu_slots(struct objpool_head *pool)
{ … }
int objpool_init(struct objpool_head *pool, int nr_objs, int object_size,
gfp_t gfp, void *context, objpool_init_obj_cb objinit,
objpool_fini_cb release)
{ … }
EXPORT_SYMBOL_GPL(…);
void objpool_free(struct objpool_head *pool)
{ … }
EXPORT_SYMBOL_GPL(…);
int objpool_drop(void *obj, struct objpool_head *pool)
{ … }
EXPORT_SYMBOL_GPL(…);
void objpool_fini(struct objpool_head *pool)
{ … }
EXPORT_SYMBOL_GPL(…);