mntdata.h revision a19609f85693e4e7d7e744d836a4e87193c934e4
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#ifndef _SYS_MNTFS_MNTDATA_H
#define _SYS_MNTFS_MNTDATA_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct mntelem {
/* Metadata. */
int mnte_refcnt;
/* Payload. */
int mnte_hidden;
char *mnte_text;
} mntelem_t;
typedef struct mntsnap {
int mnts_flags; /* flags; see below. */
} mntsnap_t;
typedef struct mntnode {
} mntnode_t;
/*
* Conversion macros.
*/
(x)->mnte_death.tv_nsec)
#define MNTFS_ELEM_IS_ALIVE(x) !MNTFS_ELEM_IS_DEAD(x)
#if defined(_KERNEL)
typedef struct mntdata {
} mntdata_t;
/*
* Value for a mntsnap_t's mnts_flags.
*/
/*
* Values for a mntnode_t's mnt_flags.
*/
extern struct vnodeops *mntvnodeops;
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_MNTFS_MNTDATA_H */