Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _LINUX_LIST_SORT_H
0003 #define _LINUX_LIST_SORT_H
0004 
0005 #include <linux/types.h>
0006 
0007 struct list_head;
0008 
0009 typedef int __attribute__((nonnull(2,3))) (*list_cmp_func_t)(void *,
0010         const struct list_head *, const struct list_head *);
0011 
0012 __attribute__((nonnull(2,3)))
0013 void list_sort(void *priv, struct list_head *head, list_cmp_func_t cmp);
0014 #endif