io_uring/cmd: add cmd lazy tw wake helper
[linux-block.git] / include / linux / sort.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2#ifndef _LINUX_SORT_H
3#define _LINUX_SORT_H
4
5#include <linux/types.h>
6
4333fb96 7void sort_r(void *base, size_t num, size_t size,
52ae533b 8 cmp_r_func_t cmp_func,
a0019cd7 9 swap_r_func_t swap_func,
4333fb96
RV
10 const void *priv);
11
1da177e4 12void sort(void *base, size_t num, size_t size,
52ae533b
AS
13 cmp_func_t cmp_func,
14 swap_func_t swap_func);
1da177e4
LT
15
16#endif