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 8 "Jun 23, 2008"
8 devfsadm, devfsadmd \- administration command for /dev
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]
18 \fB/usr/lib/devfsadm/devfsadmd\fR
24 \fBdevfsadm\fR(8) maintains the \fB/dev\fR namespace. It replaces the previous
25 suite of \fBdevfs\fR administration tools including \fBdrvconfig\fR(8),
26 \fBdisks\fR(8), \fBtapes\fR(8), \fBports\fR(8), \fBaudlinks\fR(8), and
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
36 \fBdevfsadmd\fR(8) is the daemon version of \fBdevfsadm\fR(8). 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.
42 For compatibility purposes, \fBdrvconfig\fR(8), \fBdisks\fR(8),
43 \fBtapes\fR(8), \fBports\fR(8), \fBaudlinks\fR(8), and \fBdevlinks\fR(8)
44 are implemented as links to \fBdevfsadm\fR.
47 In addition to managing \fB/dev\fR, \fBdevfsadm\fR also maintains the
48 \fBpath_to_inst\fR(4) database.
52 The following options are supported:
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.
67 \fB\fB-c\fR \fIdevice_class\fR\fR
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.
79 \fB\fB-i\fR \fIdriver_name\fR\fR
82 Configure only the devices for the named driver, \fIdriver_name\fR.
91 Do not attempt to load drivers or add new nodes to the kernel device tree.
100 Suppress any changes to \fB/dev\fR. This is useful with the \fB-v\fR option for
107 \fB\fB-t\fR \fItable_file\fR\fR
110 Read an alternate \fBdevlink.tab\fR file. \fBdevfsadm\fR normally reads
111 \fB/etc/devlink.tab\fR.
117 \fB\fB-r\fR \fIroot_dir\fR\fR
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
131 Print changes to \fB/dev\fR in verbose mode.
137 The following exit values are returned:
144 Successful completion.
164 device nodes directory
174 logical symbolic links to /devices
180 \fB\fB/usr/lib/devfsadm/devfsadmd\fR\fR
190 \fB\fB/dev/.devfsadm_dev.lock\fR\fR
200 \fB\fB/dev/.devfsadm_daemon.lock\fR\fR
210 \fB\fB/etc/security/device_policy\fR\fR
220 \fB\fB/etc/security/extra_privs\fR\fR
224 additional device privileges
230 \fBsvcs\fR(1), \fBadd_drv\fR(8), \fBmodinfo\fR(8), \fBmodload\fR(8),
231 \fBmodunload\fR(8), \fBrem_drv\fR(8), \fBsvcadm\fR(8), \fBtapes\fR(8),
232 \fBpath_to_inst\fR(4), \fBattributes\fR(5), \fBprivileges\fR(5), \fBsmf\fR(5),
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
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:
253 svc:/system/device/local:default
260 Otherwise, \fBdevfsadm\fR is started by:
264 svc:/system/sysevent:default
271 Administrative actions on this service, such as enabling, disabling, or
272 requesting restart, can be performed using \fBsvcadm\fR(8). The service's
273 status can be queried using the \fBsvcs\fR(1) command.