xref: /illumos-gate/usr/src/man/man8/drvconfig.8 (revision 15f90b02bdacbf0ae47fa105944f15b6596f9748)
te
Copyright (c) 2002 Sun Microsystems, Inc. All
Rights Reserved.
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 or http://www.opensolaris.org/os/licensing. 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]
DRVCONFIG 8 "Aug 9, 2004"
NAME
drvconfig - apply permission and ownership changes to devices
SYNOPSIS

drvconfig [-bn] [-a alias_name] [-c class_name]
 [-i drivername] [-m major_num] [-r root_dir]
DESCRIPTION

devfsadm(8) is now the preferred command and should be used instead of drvconfig.

The default operation of drvconfig is to apply permission and ownership changes to devices. Normally, this command is run automatically after a new driver has been installed (with add_drv(8)) and the system has been rebooted.

OPTIONS

The following options are supported: -aalias_name

Add the name alias_name to the list of aliases that this driver is known by. This option, if used, must be used with the -m major_num, the -b and the -i drivername options.

-b

Add a new major number to name binding into the kernel's internal name_to_major tables. This option is not normally used directly, but is used by other utilities such as add_drv(8). Use of the -b option requires that -i and -m be used also. No /devices entries are created.

-cclass_name

The driver being added to the system exports the class class_name. This option is not normally used directly, but is used by other utilities. It is only effective when used with the -b option.

-idrivername

Only configure the devices for the named driver. The following options are used by the implementation of add_drv(8) and rem_drv(8), and may not be supported in future versions of Solaris:

-mmajor_num

Specify the major number major_num for this driver to add to the kernel's name_to_major binding tables.

-n

Do not try to load and attach any drivers, or if the -i option is given, do not try to attach the driver named drivername.

-rroot_dir

Perform operations under root_dir, rather than directly under root.

EXIT STATUS
0

Successful completion.

non-zero

An error occurred.

FILES
/devices

Device nodes directory

/etc/minor_perm

Minor mode permissions

/etc/name_to_major

Major number binding

/etc/driver_classes

Driver class binding file

SEE ALSO

sh (1), devfs (4FS), path_to_inst (5), attributes (7), add_drv (8), modinfo (8), modload (8), modunload (8), rem_drv (8), update_drv (8)