summaryrefslogtreecommitdiff
path: root/list_sort.h
diff options
context:
space:
mode:
Diffstat (limited to 'list_sort.h')
-rw-r--r--list_sort.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/list_sort.h b/list_sort.h
new file mode 100644
index 00000000..987cd5c4
--- /dev/null
+++ b/list_sort.h
@@ -0,0 +1,14 @@
+/*
+ * taken from linux kernel include/list_sort.h
+ */
+#ifndef _LINUX_LIST_SORT_H
+#define _LINUX_LIST_SORT_H
+
+#include "kerncompat.h"
+
+struct list_head;
+
+void list_sort(void *priv, struct list_head *head,
+ int (*cmp)(void *priv, struct list_head *a,
+ struct list_head *b));
+#endif