Home
last modified time | relevance | path

Searched refs:cmp_func (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/lib/
Dlist_sort.c10 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()
Dsort.c205 int (*cmp_func)(const void *, const void *, const void *), in sort_r()
255 b = do_cmp(base + c, base + d, cmp_func, priv) >= 0 ? c : d; in sort_r()
260 while (b != a && do_cmp(base + a, base + b, cmp_func, priv) >= 0) in sort_r()
272 int (*cmp_func)(const void *, const void *), in sort()
275 return sort_r(base, num, size, _CMP_WRAPPER, swap_func, cmp_func); in sort()