6253 F_GETLK doesn't always return lock owner
[illumos-gate.git] / usr / src / man / man1m / devfsadm.1m
blobc5b55f52ee96aef7b7c5d70da9449facd1458d1b
1 '\" te
2 .\"  Copyright (c) 20088888888 Sun Microsystems, Inc. All Rights Reserved.
3 .\" 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.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" 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]
6 .TH DEVFSADM 1M "Jun 23, 2008"
7 .SH NAME
8 devfsadm, devfsadmd \- administration command for /dev
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/usr/sbin/devfsadm\fR [\fB-C\fR] [\fB-c\fR \fIdevice_class\fR] [\fB-i\fR \fIdriver_name\fR]
13      [ \fB-n\fR] [\fB-r\fR \fIroot_dir\fR] [\fB-s\fR] [\fB-t\fR \fItable_file\fR] [\fB-v\fR]
14 .fi
16 .LP
17 .nf
18 \fB/usr/lib/devfsadm/devfsadmd\fR
19 .fi
21 .SH DESCRIPTION
22 .sp
23 .LP
24 \fBdevfsadm\fR(1M) maintains the \fB/dev\fR namespace. It replaces the previous
25 suite of \fBdevfs\fR administration tools including \fBdrvconfig\fR(1M),
26 \fBdisks\fR(1M), \fBtapes\fR(1M), \fBports\fR(1M), \fBaudlinks\fR(1M), and
27 \fBdevlinks\fR(1M).
28 .sp
29 .LP
30 The default operation is to attempt to load every driver in the system and
31 attach to all possible device instances. Next, \fBdevfsadm\fR creates logical
32 links to device nodes in \fB/dev\fR and \fB/devices\fR and loads the device
33 policy.
34 .sp
35 .LP
36 \fBdevfsadmd\fR(1M) is the daemon version of \fBdevfsadm\fR(1M). The daemon is
37 started during system startup and is responsible for handling both
38 reconfiguration boot processing and updating \fB/dev\fR and \fB/devices\fR in
39 response to dynamic reconfiguration event notifications from the kernel.
40 .sp
41 .LP
42 For compatibility purposes, \fBdrvconfig\fR(1M), \fBdisks\fR(1M),
43 \fBtapes\fR(1M), \fBports\fR(1M), \fBaudlinks\fR(1M), and \fBdevlinks\fR(1M)
44 are implemented as links to \fBdevfsadm\fR.
45 .sp
46 .LP
47 In addition to managing \fB/dev\fR, \fBdevfsadm\fR also maintains the
48 \fBpath_to_inst\fR(4) database.
49 .SH OPTIONS
50 .sp
51 .LP
52 The following options are supported:
53 .sp
54 .ne 2
55 .na
56 \fB\fB-C\fR\fR
57 .ad
58 .RS 19n
59 Cleanup mode. Prompt \fBdevfsadm\fR to cleanup dangling \fB/dev\fR links that
60 are not normally removed. If the \fB-c\fR option is also used, \fBdevfsadm\fR
61 only cleans up for the listed devices' classes.
62 .RE
64 .sp
65 .ne 2
66 .na
67 \fB\fB-c\fR \fIdevice_class\fR\fR
68 .ad
69 .RS 19n
70 Restrict operations to devices of class \fIdevice_class\fR. Solaris defines the
71 following values for \fIdevice_class\fR: \fBdisk\fR, \fBtape\fR, \fBport\fR,
72 \fBaudio\fR, and \fBpseudo\fR. This option might be specified more than once to
73 specify multiple device classes.
74 .RE
76 .sp
77 .ne 2
78 .na
79 \fB\fB-i\fR \fIdriver_name\fR\fR
80 .ad
81 .RS 19n
82 Configure only the devices for the named driver, \fIdriver_name\fR.
83 .RE
85 .sp
86 .ne 2
87 .na
88 \fB\fB-n\fR\fR
89 .ad
90 .RS 19n
91 Do not attempt to load drivers or add new nodes to the kernel device tree.
92 .RE
94 .sp
95 .ne 2
96 .na
97 \fB\fB-s\fR\fR
98 .ad
99 .RS 19n
100 Suppress any changes to \fB/dev\fR. This is useful with the \fB-v\fR option for
101 debugging.
105 .ne 2
107 \fB\fB-t\fR \fItable_file\fR\fR
109 .RS 19n
110 Read an alternate \fBdevlink.tab\fR file. \fBdevfsadm\fR normally reads
111 \fB/etc/devlink.tab\fR.
115 .ne 2
117 \fB\fB-r\fR \fIroot_dir\fR\fR
119 .RS 19n
120 Presume that the \fB/dev\fR directory trees are found under \fIroot_dir\fR, not
121 directly under \fBroot\fR (\fB/\fR). No other use or assumptions are made about
122 \fIroot_dir\fR.
126 .ne 2
128 \fB\fB-v\fR\fR
130 .RS 19n
131 Print changes to \fB/dev\fR in verbose mode.
134 .SH EXIT STATUS
137 The following exit values are returned:
139 .ne 2
141 \fB\fB0\fR\fR
143 .RS 5n
144 Successful completion.
148 .ne 2
150 \fB\fB1\fR\fR
152 .RS 5n
153 An error occurred.
156 .SH FILES
158 .ne 2
160 \fB\fB/devices\fR\fR
162 .sp .6
163 .RS 4n
164 device nodes directory
168 .ne 2
170 \fB\fB/dev\fR\fR
172 .sp .6
173 .RS 4n
174 logical symbolic links to /devices
178 .ne 2
180 \fB\fB/usr/lib/devfsadm/devfsadmd\fR\fR
182 .sp .6
183 .RS 4n
184 devfsadm daemon
188 .ne 2
190 \fB\fB/dev/.devfsadm_dev.lock\fR\fR
192 .sp .6
193 .RS 4n
194 update lock file
198 .ne 2
200 \fB\fB/dev/.devfsadm_daemon.lock\fR\fR
202 .sp .6
203 .RS 4n
204 daemon lock file
208 .ne 2
210 \fB\fB/etc/security/device_policy\fR\fR
212 .sp .6
213 .RS 4n
214 device policy file
218 .ne 2
220 \fB\fB/etc/security/extra_privs\fR\fR
222 .sp .6
223 .RS 4n
224 additional device privileges
227 .SH SEE ALSO
230 \fBsvcs\fR(1), \fBadd_drv\fR(1M), \fBmodinfo\fR(1M), \fBmodload\fR(1M),
231 \fBmodunload\fR(1M), \fBrem_drv\fR(1M), \fBsvcadm\fR(1M), \fBtapes\fR(1M),
232 \fBpath_to_inst\fR(4), \fBattributes\fR(5), \fBprivileges\fR(5), \fBsmf\fR(5),
233 \fBdevfs\fR(7FS)
234 .SH NOTES
237 This document does not constitute an \fBAPI\fR. The \fB/devices\fR directory
238 might not exist or might have different contents or interpretations in a future
239 release. The existence of this notice does not imply that any other
240 documentation that lacks this notice constitutes an \fBAPI\fR.
243 \fBdevfsadm\fR no longer manages the \fB/devices\fR name space. See
244 \fBdevfs\fR(7FS).
247 The device configuration service is managed by the service management facility,
248 \fBsmf\fR(5), under the service identifier, and can be used to start
249 \fBdevfsadm\fR during reconfiguration boot by:
251 .in +2
253 svc:/system/device/local:default
255 .in -2
260 Otherwise, \fBdevfsadm\fR is started by:
262 .in +2
264 svc:/system/sysevent:default
266 .in -2
271 Administrative actions on this service, such as enabling, disabling, or
272 requesting restart, can be performed using \fBsvcadm\fR(1M). The service's
273 status can be queried using the \fBsvcs\fR(1) command.