Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/thorpej-cfargs2]: src/sys/sys Hide "struct cfargs" from user space.



details:   https://anonhg.NetBSD.org/src/rev/ad1673a4e4fb
branches:  thorpej-cfargs2
changeset: 985068:ad1673a4e4fb
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Aug 07 14:21:28 2021 +0000

description:
Hide "struct cfargs" from user space.

diffstat:

 sys/sys/device.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 4135c23fd8fc -r ad1673a4e4fb sys/sys/device.h
--- a/sys/sys/device.h  Thu Aug 05 03:37:41 2021 +0000
+++ b/sys/sys/device.h  Sat Aug 07 14:21:28 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.171.2.1 2021/08/03 15:00:15 thorpej Exp $ */
+/* $NetBSD: device.h,v 1.171.2.2 2021/08/07 14:21:28 thorpej Exp $ */
 
 /*
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -530,6 +530,7 @@
 /* This allows us to wildcard a device unit. */
 #define        DVUNIT_ANY      -1
 
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_STANDALONE)
 /*
  * Arguments passed to config_search() and config_found().
  */
@@ -564,6 +565,7 @@
                .cfargs_version = CFARGS_VERSION,                       \
                __VA_ARGS__                                             \
        })
+#endif /* _KERNEL || _KMEMUSER || _STANDALONE */
 
 #ifdef _KERNEL
 



Home | Main Index | Thread Index | Old Index