From 10ebd8556b7990499c896a550e3d416b444211e6 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 02:23:07 +0000 Subject: [PATCH] add led --- kernel/include/linux/sort.h | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/kernel/include/linux/sort.h b/kernel/include/linux/sort.h index 2b99a5d..b589872 100644 --- a/kernel/include/linux/sort.h +++ b/kernel/include/linux/sort.h @@ -4,8 +4,13 @@ #include <linux/types.h> +void sort_r(void *base, size_t num, size_t size, + cmp_r_func_t cmp_func, + swap_func_t swap_func, + const void *priv); + void sort(void *base, size_t num, size_t size, - int (*cmp)(const void *, const void *), - void (*swap)(void *, void *, int)); + cmp_func_t cmp_func, + swap_func_t swap_func); #endif -- Gitblit v1.6.2