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
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]
22 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
23 /* All Rights Reserved */
27 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
39 * Definitions related to the utssys() system call.
43 * "commands" of utssys
45 #define UTS_USTAT 0x2 /* 1 was umask */
46 #define UTS_FUSERS 0x3
51 #define F_FILE_ONLY 0x01
52 #define F_CONTAINED 0x02
53 #define F_NBMANDLIST 0x04 /* Only NBMAND locks users */
54 #define F_DEVINFO 0x08 /* get device usage info for a dip instead */
56 #define F_KINFO_COUNT 0x10 /* get the current number of kernel */
57 /* device consumers */
60 * structures yielded by UTS_FUSERS
62 typedef struct f_user
{
63 int fu_flags
; /* see below */
77 typedef struct fu_data
{
80 struct f_user fud_user
[1];
84 * defines to simplify access to members of the f_user_t structure
86 #define fu_pid fu_info.u_info.u_pid
87 #define fu_uid fu_info.u_info.u_uid
89 #define fu_modid fu_info.k_info.k_modid
90 #define fu_instance fu_info.k_info.k_instance
91 #define fu_minor fu_info.k_info.k_minor
93 #define fu_data_size(x) (sizeof (fu_data_t) - sizeof (f_user_t) + \
94 ((x) * sizeof (f_user_t)))
106 #define F_NBM 0x80 /* NBMAND lock in place */
107 #define F_KERNEL 0x80000000
113 #endif /* _SYS_UTSSYS_H */