diff options
author | Davidlohr Bueso <davidlohr.bueso@hp.com> | 2013-01-04 12:14:00 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-15 23:49:55 -0800 |
commit | 4bbc0bc06b8b0cced31ee17beb753ad51a2e47e7 (patch) | |
tree | af25c90295274bf814397a7d44c6b59f0feff5f7 /drivers/staging/zsmalloc | |
parent | 1867fa64ff08b59d2c65f598c4d272397d4863c6 (diff) | |
download | linux-4bbc0bc06b8b0cced31ee17beb753ad51a2e47e7.tar.gz linux-4bbc0bc06b8b0cced31ee17beb753ad51a2e47e7.tar.bz2 linux-4bbc0bc06b8b0cced31ee17beb753ad51a2e47e7.zip |
staging: zsmalloc: comment zs_create_pool function
Just as with zs_malloc() and zs_map_object(), it is worth
formally commenting the zs_create_pool() function.
Signed-off-by: Davidlohr Bueso <davidlohr.bueso@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/zsmalloc')
-rw-r--r-- | drivers/staging/zsmalloc/zsmalloc-main.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/staging/zsmalloc/zsmalloc-main.c b/drivers/staging/zsmalloc/zsmalloc-main.c index 09a9d35d436f..eb0077261ac6 100644 --- a/drivers/staging/zsmalloc/zsmalloc-main.c +++ b/drivers/staging/zsmalloc/zsmalloc-main.c @@ -798,6 +798,17 @@ fail: return notifier_to_errno(ret); } +/** + * zs_create_pool - Creates an allocation pool to work from. + * @name: name of the pool to be created + * @flags: allocation flags used when growing pool + * + * This function must be called before anything when using + * the zsmalloc allocator. + * + * On success, a pointer to the newly created pool is returned, + * otherwise NULL. + */ struct zs_pool *zs_create_pool(const char *name, gfp_t flags) { int i, ovhd_size; |