drvconfig(1M)
NAME
drvconfig − configure the /devices directory
SYNOPSIS
drvconfig [ −b ] [ −d ] [ −a alias_name ] [ −c class_name ] [ −i filename ] [ −m major_num ]
[ −r rootdir ]
AVAILABILITY
SUNWcsu
DESCRIPTION
drvconfig creates the /devices directory tree which describes in the filesystem namespace the hardware layout of a particular machine. Hardware devices present on the machine and powered on as well as pseudo-drivers are represented under /devices. Normally this command is run automatically after a new driver has been installed (with add_drv(1M)) and the system has been rebooted.
OPTIONS
−b Add a new major number to name binding into the kernel name_to_major tables.
−d Debug. Print out debugging information about the devices it has found.
−a alias_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 filename options.
−c class_name The driver being added to the system exports the class class_name.
−i filename Only configure the devices for the driver named filename.
−m major_num
Specify the major number major_num for this driver to add to the kernel’s name_to_major binding tables.
−r rootdir Build the device tree under the directory specified by rootdir instead of the default /devices directory.
drvconfig reads the /etc/minor_perm file to obtain permission information and applies the permissions only to nodes which it has just created. It does not change permissions on already existing nodes. The format of the /etc/minor_perm file is as follows:
name:minor_name permissions owner group
minor_name may either be ∗ (for all minor nodes exported by this driver) or it may be the actual name of the minor node. For example:
sd:∗ 0640 root sys
mm:kmem 0640 root bin
The above example sets all devices exported by the sd node to 0640 permissions, owned by root, with group sys. The kmem device exported by the mm driver is set to 0640 permission, owned by root, with group bin.
SEE ALSO
add_drv(1M), devlinks(1M), disks(1M), modinfo(1M), modload(1M), modunload(1M), ports(1M), rem_drv(1M), tapes(1M)
SunOS 5.2 — Last change: 14 Sep 1992