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 Define list_splice_init.
details: https://anonhg.NetBSD.org/src/rev/03eb89c409fe
branches: trunk
changeset: 366215:03eb89c409fe
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 13:56:58 2018 +0000
description:
Define list_splice_init.
diffstat:
sys/external/bsd/common/include/linux/list.h | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 75fb3fc19e46 -r 03eb89c409fe sys/external/bsd/common/include/linux/list.h
--- a/sys/external/bsd/common/include/linux/list.h Mon Aug 27 13:56:46 2018 +0000
+++ b/sys/external/bsd/common/include/linux/list.h Mon Aug 27 13:56:58 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: list.h,v 1.17 2018/08/27 13:56:46 riastradh Exp $ */
+/* $NetBSD: list.h,v 1.18 2018/08/27 13:56:58 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -160,6 +160,15 @@
}
static inline void
+list_splice_init(struct list_head *list, struct list_head *head)
+{
+ if (!list_empty(list)) {
+ __list_splice_between(head, list, head->next);
+ INIT_LIST_HEAD(list);
+ }
+}
+
+static inline void
list_splice_tail(const struct list_head *list, struct list_head *head)
{
if (!list_empty(list))
Home |
Main Index |
Thread Index |
Old Index