diff options
author | Matthew Wilcox <willy@infradead.org> | 2017-11-17 16:16:34 +0300 |
---|---|---|
committer | Matthew Wilcox <willy@infradead.org> | 2018-10-21 17:45:59 +0300 |
commit | 687149fca1f37c447e5d161e0a4a04cb2c880cb6 (patch) | |
tree | 5134bc243622997b10644a67a55ee51e6278930a /include/linux/xarray.h | |
parent | 80a0a1a9a3cde9b23851e8eb7160e2786549306a (diff) | |
download | linux-687149fca1f37c447e5d161e0a4a04cb2c880cb6.tar.xz |
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.h | 1 |
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. |