diff options
Diffstat (limited to 'include/linux/sort.h')
-rw-r--r-- | include/linux/sort.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/sort.h b/include/linux/sort.h new file mode 100644 index 000000000..e163287ac --- /dev/null +++ b/include/linux/sort.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_SORT_H +#define _LINUX_SORT_H + +#include <linux/types.h> + +void sort_r(void *base, size_t num, size_t size, + cmp_r_func_t cmp_func, + swap_r_func_t swap_func, + const void *priv); + +void sort(void *base, size_t num, size_t size, + cmp_func_t cmp_func, + swap_func_t swap_func); + +#endif |