diff options
author | Mike Rapoport <rppt@linux.vnet.ibm.com> | 2018-08-23 17:01:02 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-23 18:48:43 -0700 |
commit | ff4dc77293ec7aafb022b9b40b14ee188d43c901 (patch) | |
tree | d621b96d8a6cc81490f4f95a531e3688f309fec8 /mm | |
parent | b86181f1ad94054ae953d81452329377abeec0a8 (diff) | |
download | linux-ff4dc77293ec7aafb022b9b40b14ee188d43c901.tar.gz linux-ff4dc77293ec7aafb022b9b40b14ee188d43c901.tar.bz2 linux-ff4dc77293ec7aafb022b9b40b14ee188d43c901.zip |
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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mm/util.c b/mm/util.c index 6809014cf4c8..d2890a407332 100644 --- a/mm/util.c +++ b/mm/util.c @@ -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)) |