list_sort.h 307 B

12345678910111213
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _LINUX_LIST_SORT_H
  3. #define _LINUX_LIST_SORT_H
  4. #include <linux/types.h>
  5. struct list_head;
  6. __attribute__((nonnull(2,3)))
  7. void list_sort(void *priv, struct list_head *head,
  8. int (*cmp)(void *priv, struct list_head *a,
  9. struct list_head *b));
  10. #endif