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 list_is_last
details: https://anonhg.NetBSD.org/src/rev/3fa1a3dd89e0
branches: trunk
changeset: 1028066:3fa1a3dd89e0
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 01:46:23 2021 +0000
description:
list_is_last
diffstat:
sys/external/bsd/common/include/linux/list.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 5e7b10925b76 -r 3fa1a3dd89e0 sys/external/bsd/common/include/linux/list.h
--- a/sys/external/bsd/common/include/linux/list.h Sun Dec 19 01:46:16 2021 +0000
+++ b/sys/external/bsd/common/include/linux/list.h Sun Dec 19 01:46:23 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: list.h,v 1.21 2021/12/19 01:44:41 riastradh Exp $ */
+/* $NetBSD: list.h,v 1.22 2021/12/19 01:46:23 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -107,6 +107,12 @@
return true;
}
+static inline bool
+list_is_last(const struct list_head *entry, const struct list_head *head)
+{
+ return head == entry->next;
+}
+
static inline void
__list_add_between(struct list_head *prev, struct list_head *node,
struct list_head *next)
Home |
Main Index |
Thread Index |
Old Index