forked from Minki/linux
mm/util: add kernel-doc for kvfree
Link: http://lkml.kernel.org/r/1532626360-16650-3-git-send-email-rppt@linux.vnet.ibm.com Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Matthew Wilcox <willy@infradead.org> Cc: Michal Hocko <mhocko@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b86181f1ad
commit
ff4dc77293
@ -434,6 +434,13 @@ void *kvmalloc_node(size_t size, gfp_t flags, int node)
|
||||
}
|
||||
EXPORT_SYMBOL(kvmalloc_node);
|
||||
|
||||
/**
|
||||
* kvfree - free memory allocated with kvmalloc
|
||||
* @addr: pointer returned by kvmalloc
|
||||
*
|
||||
* If the memory is allocated from vmalloc area it is freed with vfree().
|
||||
* Otherwise kfree() is used.
|
||||
*/
|
||||
void kvfree(const void *addr)
|
||||
{
|
||||
if (is_vmalloc_addr(addr))
|
||||
|
Loading…
Reference in New Issue
Block a user