Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev do not expose kernel-internal structure definitions ...
details: https://anonhg.NetBSD.org/src/rev/20a95a8340d9
branches: trunk
changeset: 354260:20a95a8340d9
user: chs <chs%NetBSD.org@localhost>
date: Thu Jun 08 22:23:56 2017 +0000
description:
do not expose kernel-internal structure definitions to userland.
needed due to upcoming sys/disk.h changes needed for ZFS.
diffstat:
sys/dev/ccdvar.h | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (49 lines):
diff -r 795315a7679e -r 20a95a8340d9 sys/dev/ccdvar.h
--- a/sys/dev/ccdvar.h Thu Jun 08 22:10:39 2017 +0000
+++ b/sys/dev/ccdvar.h Thu Jun 08 22:23:56 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ccdvar.h,v 1.35 2015/09/06 06:00:59 dholland Exp $ */
+/* $NetBSD: ccdvar.h,v 1.36 2017/06/08 22:23:56 chs Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 1999, 2007, 2009 The NetBSD Foundation, Inc.
@@ -70,11 +70,13 @@
#ifndef _DEV_CCDVAR_H_
#define _DEV_CCDVAR_H_
+#include <sys/ioccom.h>
+#ifdef _KERNEL
#include <sys/buf.h>
-#include <sys/ioccom.h>
#include <sys/mutex.h>
#include <sys/queue.h>
#include <sys/condvar.h>
+#endif
/*
* Dynamic configuration and disklabel support by:
@@ -97,6 +99,7 @@
uint64_t ccio_size; /* (returned) size of ccd */
};
+#ifdef _KERNEL
/*
* Component info table.
@@ -181,6 +184,8 @@
LIST_ENTRY(ccd_softc) sc_link;
};
+#endif /* _KERNEL */
+
/* sc_flags */
#define CCDF_UNIFORM 0x002 /* use LCCD of sizes for uniform interleave */
#define CCDF_NOLABEL 0x004 /* ignore on-disk (raw) disklabel */
@@ -221,6 +226,7 @@
#define CCDIOCSET_60 _IOWR('F', 16, struct ccd_ioctl_60) /* enable ccd */
#define CCDIOCCLR_60 _IOW('F', 17, struct ccd_ioctl_60) /* disable ccd */
#endif /* COMPAT_60 && !LP64*/
+
/*
* Sysctl information
*/
Home |
Main Index |
Thread Index |
Old Index