#ifndef _HWBM_H #define _HWBM_H struct hwbm_pool { /* Capacity of the pool */ int size; /* Size of the buffers managed */ int frag_size; /* Number of buffers currently used by this pool */ int buf_num; /* constructor called during alocation */ int (*construct)(struct hwbm_pool *bm_pool, void *buf); /* protect acces to the buffer counter*/ spinlock_t lock; /* private data */ void *priv; }; #ifdef CONFIG_HWBM void hwbm_buf_free(struct hwbm_pool *bm_pool, void *buf); int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp); int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num, gfp_t gfp); #else
void hwbm_buf_free(struct hwbm_pool *bm_pool, void *buf) {}Contributors
Person | Tokens | Prop | Commits | CommitProp |
Gregory CLEMENT | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Gregory CLEMENT | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Gregory CLEMENT | 20 | 100.00% | 1 | 100.00% |
Total | 20 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Gregory CLEMENT | 150 | 100.00% | 1 | 100.00% |
Total | 150 | 100.00% | 1 | 100.00% |