aboutsummaryrefslogtreecommitdiff
path: root/include/linux/xarray.h
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2017-11-17 08:16:34 -0500
committerMatthew Wilcox <willy@infradead.org>2018-10-21 10:45:59 -0400
commit687149fca1f37c447e5d161e0a4a04cb2c880cb6 (patch)
tree5134bc243622997b10644a67a55ee51e6278930a /include/linux/xarray.h
parent80a0a1a9a3cde9b23851e8eb7160e2786549306a (diff)
downloadlinux-stericsson-687149fca1f37c447e5d161e0a4a04cb2c880cb6.tar.gz
xarray: Destroy an XArray
This function frees all the internal memory allocated to the xarray and reinitialises it to be empty. Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'include/linux/xarray.h')
-rw-r--r--include/linux/xarray.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/xarray.h b/include/linux/xarray.h
index 82ceed981924..0a758fa3ed2c 100644
--- a/include/linux/xarray.h
+++ b/include/linux/xarray.h
@@ -286,6 +286,7 @@ void *xa_find_after(struct xarray *xa, unsigned long *index,
unsigned long max, xa_mark_t) __attribute__((nonnull(2)));
unsigned int xa_extract(struct xarray *, void **dst, unsigned long start,
unsigned long max, unsigned int n, xa_mark_t);
+void xa_destroy(struct xarray *);
/**
* xa_init() - Initialise an empty XArray.