mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
80a0a1a9a3
commit
687149fca1
3 changed files with 63 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue