Skip to content

Commit

Permalink
staging: zsmalloc: comment zs_create_pool function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Davidlohr Bueso authored and Greg Kroah-Hartman committed Jan 16, 2013
1 parent 1867fa6 commit 4bbc0bc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/staging/zsmalloc/zsmalloc-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,17 @@ static int zs_init(void)
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;
Expand Down

0 comments on commit 4bbc0bc

Please sign in to comment.