Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/include/linux statically allocated kfifo
details: https://anonhg.NetBSD.org/src/rev/d21169d01095
branches: trunk
changeset: 1028400:d21169d01095
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 10:57:34 2021 +0000
description:
statically allocated kfifo
diffstat:
sys/external/bsd/drm2/include/linux/kfifo.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 6416e18a948a -r d21169d01095 sys/external/bsd/drm2/include/linux/kfifo.h
--- a/sys/external/bsd/drm2/include/linux/kfifo.h Sun Dec 19 10:57:27 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/kfifo.h Sun Dec 19 10:57:34 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kfifo.h,v 1.3 2018/08/27 14:41:53 riastradh Exp $ */
+/* $NetBSD: kfifo.h,v 1.4 2021/12/19 10:57:34 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -52,7 +52,14 @@
TYPE *kf_buf; \
}
+#define _KFIFO_TYPE(TAG, TYPE, N) \
+ struct TAG { \
+ struct kfifo_meta kf_meta; \
+ TYPE kf_buf[N]; \
+ }
+
#define DECLARE_KFIFO_PTR(FIFO, TYPE) _KFIFO_PTR_TYPE(, TYPE) FIFO
+#define DECLARE_KFIFO(FIFO, TYPE, N) _KFIFO_TYPE(, TYPE, N) FIFO
_KFIFO_PTR_TYPE(kfifo, void);
Home |
Main Index |
Thread Index |
Old Index