aboutsummaryrefslogtreecommitdiffstats
path: root/mm/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/util.c')
-rw-r--r--mm/util.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/mm/util.c b/mm/util.c
index d2890a407332..9e3ebd2ef65f 100644
--- a/mm/util.c
+++ b/mm/util.c
@@ -435,11 +435,14 @@ void *kvmalloc_node(size_t size, gfp_t flags, int node)
435EXPORT_SYMBOL(kvmalloc_node); 435EXPORT_SYMBOL(kvmalloc_node);
436 436
437/** 437/**
438 * kvfree - free memory allocated with kvmalloc 438 * kvfree() - Free memory.
439 * @addr: pointer returned by kvmalloc 439 * @addr: Pointer to allocated memory.
440 * 440 *
441 * If the memory is allocated from vmalloc area it is freed with vfree(). 441 * kvfree frees memory allocated by any of vmalloc(), kmalloc() or kvmalloc().
442 * Otherwise kfree() is used. 442 * It is slightly more efficient to use kfree() or vfree() if you are certain
443 * that you know which one to use.
444 *
445 * Context: Any context except NMI.
443 */ 446 */
444void kvfree(const void *addr) 447void kvfree(const void *addr)
445{ 448{