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 provide list_is_first



details:   https://anonhg.NetBSD.org/src/rev/3de68837ae93
branches:  trunk
changeset: 1028140:3de68837ae93
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:57:57 2021 +0000

description:
provide list_is_first


Author: Maya Rashish <maya%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/common/include/linux/list.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r f783f79212b0 -r 3de68837ae93 sys/external/bsd/common/include/linux/list.h
--- a/sys/external/bsd/common/include/linux/list.h      Sun Dec 19 01:57:49 2021 +0000
+++ b/sys/external/bsd/common/include/linux/list.h      Sun Dec 19 01:57:57 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: list.h,v 1.22 2021/12/19 01:46:23 riastradh Exp $      */
+/*     $NetBSD: list.h,v 1.23 2021/12/19 01:57:57 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -108,6 +108,13 @@
 }
 
 static inline bool
+list_is_first(const struct list_head *entry, const struct list_head *head)
+{
+       return head == entry->prev;
+       
+}
+
+static inline bool
 list_is_last(const struct list_head *entry, const struct list_head *head)
 {
        return head == entry->next;



Home | Main Index | Thread Index | Old Index