Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ add_drv(1M) — SunOS 5.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ddi_create_minor_node(9F)

devlinks(1M)

disks(1M)

driver.conf(4)

drvconfig(1M)

modinfo(1M)

ports(1M)

rem_drv(1M)

system(4)

tapes(1M)

add_drv(1M)

NAME

add_drv − add a new device driver to the system

SYNOPSIS

add_drv [ −m ’permission’,’...’ ] [ −i ’identify_name...’ ]

driver_module

AVAILABILITY

SUNWcsu

DESCRIPTION

The add_drv command is used to inform the system about newly installed device drivers. 

OPTIONS

−i ’identify_name’ A whitespace separated list of aliases for the driver driver_module.

−m ’permission’ Specify the file system permissions for device nodes created by the system on behalf of driver_module.

EXAMPLES

The following example adds the SUNW,example driver to the system, with an alias name of SUNW,alias.  It assumes the driver has already been copied to /usr/kernel/drv. 

example# add_drv −m ’∗ 0666 bin bin’,’a 0644 root sys’ \
−i ’SUNW,alias’ /usr/kernel/drv/SUNW,example

Every minor node created by the system for the SUNW,example driver will have the permission 0666, and be owned by user bin in the group bin, except for the minor device a, which will be owned by root, group sys, and have a permission of 0644. 

EXIT CODES

add_drv returns 0 if successful, 1 if a failure occurred. 

FILES

/kernel/drv Boot device drivers, platform-dependent drivers. 

/usr/kernel/drv Other drivers that could potentially be shared between platforms. 

/etc/driver_aliases Driver aliases file. 

/etc/minor_perm Minor node permissions. 

/etc/name_to_major
Major number binding.

SEE ALSO

ddi_create_minor_node(9F), devlinks(1M), disks(1M), driver.conf(4), drvconfig(1M), modinfo(1M), ports(1M), rem_drv(1M), system(4), tapes(1M)

SunOS 5.1 Writing Device Drivers

NOTES

Aliases may require quoting (with double-quotes) if they contain numbers. 

SunOS 5.2  —  Last change: 27 Jan 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026