提交 4bbc0bc0 编写于 作者: D Davidlohr Bueso 提交者: Greg Kroah-Hartman

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: NDavidlohr Bueso <davidlohr.bueso@hp.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 1867fa64
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册