Searched refs:cmp_func (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.10/lib/ |
D | list_sort.c | 10 typedef int __attribute__((nonnull(2,3))) (*cmp_func)(void *, typedef 19 static struct list_head *merge(void *priv, cmp_func cmp, in merge() 55 static void merge_final(void *priv, cmp_func cmp, struct list_head *head, in merge_final() 230 a = merge(priv, (cmp_func)cmp, b, a); in list_sort() 252 list = merge(priv, (cmp_func)cmp, pending, list); in list_sort() 256 merge_final(priv, (cmp_func)cmp, head, pending, list); in list_sort()
|
D | sort.c | 200 cmp_r_func_t cmp_func, in sort_r() argument 250 b = do_cmp(base + c, base + d, cmp_func, priv) >= 0 ? c : d; in sort_r() 255 while (b != a && do_cmp(base + a, base + b, cmp_func, priv) >= 0) in sort_r() 267 cmp_func_t cmp_func, in sort() argument 270 return sort_r(base, num, size, _CMP_WRAPPER, swap_func, cmp_func); in sort()
|
/Linux-v5.10/include/linux/ |
D | sort.h | 8 cmp_r_func_t cmp_func, 13 cmp_func_t cmp_func,
|