summaryrefslogtreecommitdiff
path: root/sys/external/bsd/common/include/linux
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2021-12-19 11:10:09 +0000
committerriastradh <riastradh@NetBSD.org>2021-12-19 11:10:09 +0000
commit5345fb43650d5f6e17b135bac6bb0ee2073cdeb7 (patch)
treebe5a14bcceb7ee2d5ad708db207021919a3c685f /sys/external/bsd/common/include/linux
parent0b8ec030e1299fe8b7365c1260b9d6e7154d20e0 (diff)
Call it srcu_struct like linux does.
Author: Maya Rashish <maya@NetBSD.org> Committer: Taylor R Campbell <riastradh@NetBSD.org>
Diffstat (limited to 'sys/external/bsd/common/include/linux')
-rw-r--r--sys/external/bsd/common/include/linux/srcu.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/external/bsd/common/include/linux/srcu.h b/sys/external/bsd/common/include/linux/srcu.h
index aa82341ced7..32b430db2d3 100644
--- a/sys/external/bsd/common/include/linux/srcu.h
+++ b/sys/external/bsd/common/include/linux/srcu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: srcu.h,v 1.2 2021/12/19 01:41:03 riastradh Exp $ */
+/* $NetBSD: srcu.h,v 1.3 2021/12/19 11:10:09 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
struct lwp;
struct percpu;
-struct srcu {
+struct srcu_struct {
struct percpu *srcu_percpu; /* struct srcu_cpu */
kmutex_t srcu_lock;
kcondvar_t srcu_cv;
@@ -55,12 +55,12 @@ struct srcu {
volatile unsigned srcu_gen;
};
-void srcu_init(struct srcu *, const char *);
-void srcu_fini(struct srcu *);
+void srcu_init(struct srcu_struct *, const char *);
+void srcu_fini(struct srcu_struct *);
-int srcu_read_lock(struct srcu *);
-void srcu_read_unlock(struct srcu *, int);
+int srcu_read_lock(struct srcu_struct *);
+void srcu_read_unlock(struct srcu_struct *, int);
-void synchronize_srcu(struct srcu *);
+void synchronize_srcu(struct srcu_struct *);
#endif /* _LINUX_SRCU_H_ */