mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
[PATCH] LIB: add gen_pool_destroy()
Modules using the genpool allocator need to be able to destroy the data structure when unloading. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Cc: Randy Dunlap <rdunlap@xenotime.net> Cc: Dean Nelson <dcn@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
d834c16516
commit
322acc96d4
2 changed files with 31 additions and 0 deletions
|
@ -31,5 +31,6 @@ struct gen_pool_chunk {
|
|||
|
||||
extern struct gen_pool *gen_pool_create(int, int);
|
||||
extern int gen_pool_add(struct gen_pool *, unsigned long, size_t, int);
|
||||
extern void gen_pool_destroy(struct gen_pool *);
|
||||
extern unsigned long gen_pool_alloc(struct gen_pool *, size_t);
|
||||
extern void gen_pool_free(struct gen_pool *, unsigned long, size_t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue