Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/common/include/linux Implement list_splice_...
details: https://anonhg.NetBSD.org/src/rev/f7941ee000c6
branches: trunk
changeset: 366005:f7941ee000c6
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 07:33:09 2018 +0000
description:
Implement list_splice_tail_init.
diffstat:
sys/external/bsd/common/include/linux/list.h | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 42c6c76efc0f -r f7941ee000c6 sys/external/bsd/common/include/linux/list.h
--- a/sys/external/bsd/common/include/linux/list.h Mon Aug 27 07:32:59 2018 +0000
+++ b/sys/external/bsd/common/include/linux/list.h Mon Aug 27 07:33:09 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: list.h,v 1.14 2018/08/27 07:21:59 riastradh Exp $ */
+/* $NetBSD: list.h,v 1.15 2018/08/27 07:33:09 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -167,6 +167,15 @@
}
static inline void
+list_splice_tail_init(struct list_head *list, struct list_head *head)
+{
+ if (!list_empty(list)) {
+ __list_splice_between(head->prev, list, head);
+ INIT_LIST_HEAD(list);
+ }
+}
+
+static inline void
list_move(struct list_head *node, struct list_head *head)
{
list_del(node);
Home |
Main Index |
Thread Index |
Old Index