diff options
| author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2002-10-27 22:48:46 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-10-27 22:48:46 -0800 |
| commit | 220897ffa961215f881875d50d3c9052e15a0d0f (patch) | |
| tree | 0f057cbbaf47a44ca75606c6ecf8e87ac8de0a00 /include/linux | |
| parent | 8341f60b59765dae50ed7beec177f4348eb9c0f1 (diff) | |
[PATCH] mempool helpers used by device mapper
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mempool.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mempool.h b/include/linux/mempool.h index 04095af05d3b..bc77a394f25a 100644 --- a/include/linux/mempool.h +++ b/include/linux/mempool.h @@ -27,4 +27,11 @@ extern void mempool_destroy(mempool_t *pool); extern void * mempool_alloc(mempool_t *pool, int gfp_mask); extern void mempool_free(void *element, mempool_t *pool); +/* + * A mempool_alloc_t and mempool_free_t that get the memory from + * a slab that is passed in through pool_data. + */ +void *mempool_alloc_slab(int gfp_mask, void *pool_data); +void mempool_free_slab(void *element, void *pool_data); + #endif /* _LINUX_MEMPOOL_H */ |
