6811333 Remove prom_printf() message in emlxs driver
[opensolaris.git] / usr / src / uts / common / sys / mntio.h
blob4b3e2d957d22a25024a9231c086abdb2700df2d1
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _SYS_MNTIO_H
28 #define _SYS_MNTIO_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
37 * Mntfs io control commands
39 #define MNTIOC ('m' << 8)
40 #define MNTIOC_NMNTS (MNTIOC|1) /* Get # of mounted resources */
41 #define MNTIOC_GETDEVLIST (MNTIOC|2) /* Get mounted dev no.'s */
42 #define MNTIOC_SETTAG (MNTIOC|3) /* Set a tag on a mounted fs */
43 #define MNTIOC_CLRTAG (MNTIOC|4) /* Clear a tag from a fs */
44 #define MNTIOC_SHOWHIDDEN (MNTIOC|6) /* private */
45 #define MNTIOC_GETMNTENT (MNTIOC|7) /* private */
47 #define MAX_MNTOPT_TAG 64 /* Maximum size for a mounted file system tag */
49 struct mnttagdesc {
50 uint_t mtd_major; /* major number of mounted resource */
51 uint_t mtd_minor; /* minor number of mounted resource */
52 char *mtd_mntpt; /* mount point for mounted resource */
53 char *mtd_tag; /* tag to set/clear */
56 #ifdef _SYSCALL32
57 struct mnttagdesc32 {
58 uint32_t mtd_major; /* major number of mounted resource */
59 uint32_t mtd_minor; /* minor number of mounted resource */
60 caddr32_t mtd_mntpt; /* mount point for mounted resource */
61 caddr32_t mtd_tag; /* tag to set/clear */
63 #endif /* _SYSCALL32 */
66 struct mntlookup {
67 size_t mtl_mntpt_off;
68 char *mtl_mntpt;
69 major_t mtl_major;
70 minor_t mtl_minor;
71 ino64_t mtl_ino;
72 char mtl_fstype[_ST_FSTYPSZ];
75 #ifdef _SYSCALL32
76 struct mntlookup32 {
77 size32_t mtl_mntpt_off;
78 caddr32_t mtl_mntpt;
79 major32_t mtl_major;
80 minor32_t mtl_minor;
81 ino64_t mtl_ino;
82 char mtl_fstype[_ST_FSTYPSZ];
84 #endif /* _SYSCALL32 */
86 #ifdef __cplusplus
88 #endif
90 #endif /* _SYS_MNTIO_H */