aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2022-02-11 15:10:08 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2022-02-17 08:30:46 +0000
commitbf7deecfe7604c394d0c89ca58ce5d22b0d5641c (patch)
treea0997495b9813a6761bf7d2bcf18e1b5cb0dc2af
parentcb15ed7da2be02b108d732e41bb6e68febf93f90 (diff)
downloadsrc-bf7deecfe7604c394d0c89ca58ce5d22b0d5641c.tar.gz
src-bf7deecfe7604c394d0c89ca58ce5d22b0d5641c.zip
linuxkpi: Add list_rotate_to_front
This just calls list_move_tail. Reviewed by: hselasky, bz Sponsored by: Beckhoff Automation GmbH & Co. KG MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D34251
-rw-r--r--sys/compat/linuxkpi/common/include/linux/list.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h
index eee1b56087e7..80ac57fecf6d 100644
--- a/sys/compat/linuxkpi/common/include/linux/list.h
+++ b/sys/compat/linuxkpi/common/include/linux/list.h
@@ -270,6 +270,13 @@ list_move_tail(struct list_head *entry, struct list_head *head)
}
static inline void
+list_rotate_to_front(struct list_head *entry, struct list_head *head)
+{
+
+ list_move_tail(entry, head);
+}
+
+static inline void
list_bulk_move_tail(struct list_head *head, struct list_head *first,
struct list_head *last)
{