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 Linux namespace for srcu.



details:   https://anonhg.NetBSD.org/src/rev/eb3499a01888
branches:  trunk
changeset: 1028028:eb3499a01888
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:41:03 2021 +0000

description:
Linux namespace for srcu.

diffstat:

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

diffs (23 lines):

diff -r e5aff7b1f82b -r eb3499a01888 sys/external/bsd/common/include/linux/srcu.h
--- a/sys/external/bsd/common/include/linux/srcu.h      Sun Dec 19 01:40:55 2021 +0000
+++ b/sys/external/bsd/common/include/linux/srcu.h      Sun Dec 19 01:41:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: srcu.h,v 1.1 2021/12/19 01:37:27 riastradh Exp $       */
+/*     $NetBSD: srcu.h,v 1.2 2021/12/19 01:41:03 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -36,6 +36,13 @@
 #include <sys/condvar.h>
 #include <sys/mutex.h>
 
+/* namespace */
+#define        srcu_fini               linux_srcu_fini
+#define        srcu_init               linux_srcu_init
+#define        srcu_read_lock          linux_srcu_read_lock
+#define        srcu_read_unlock        linux_srcu_read_unlock
+#define        synchronize_srcu        linux_synchronize_srcu
+
 struct lwp;
 struct percpu;
 



Home | Main Index | Thread Index | Old Index