5 /* Capacity of the pool */
7 /* Size of the buffers managed */
9 /* Number of buffers currently used by this pool */
11 /* constructor called during alocation */
12 int (*construct)(struct hwbm_pool *bm_pool, void *buf);
13 /* protect acces to the buffer counter*/
19 void hwbm_buf_free(struct hwbm_pool *bm_pool, void *buf);
20 int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp);
21 int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num, gfp_t gfp);
23 void hwbm_buf_free(struct hwbm_pool *bm_pool, void *buf) {}
24 int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp) { return 0; }
25 int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num, gfp_t gfp)
27 #endif /* CONFIG_HWBM */