do not expose kernel-internal structure definitions to userland.

needed due to upcoming sys/disk.h changes needed for ZFS.
This commit is contained in:
chs 2017-06-08 22:23:56 +00:00
parent e4db6fa481
commit 5d781b0ad8
1 changed files with 8 additions and 2 deletions

View File

@ -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/buf.h>
#include <sys/ioccom.h>
#ifdef _KERNEL
#include <sys/buf.h>
#include <sys/mutex.h>
#include <sys/queue.h>
#include <sys/condvar.h>
#endif
/*
* Dynamic configuration and disklabel support by:
@ -97,6 +99,7 @@ struct ccd_ioctl {
uint64_t ccio_size; /* (returned) size of ccd */
};
#ifdef _KERNEL
/*
* Component info table.
@ -181,6 +184,8 @@ struct ccd_softc {
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 @@ struct ccd_ioctl_60 {
#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
*/