linux/include/linux/sort.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 */
   2#ifndef _LINUX_SORT_H
   3#define _LINUX_SORT_H
   4
   5#include <linux/types.h>
   6
   7void sort_r(void *base, size_t num, size_t size,
   8            int (*cmp)(const void *, const void *, const void *),
   9            void (*swap)(void *, void *, int),
  10            const void *priv);
  11
  12void sort(void *base, size_t num, size_t size,
  13          int (*cmp)(const void *, const void *),
  14          void (*swap)(void *, void *, int));
  15
  16#endif
  17