Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (9905 KB)
update_drv(1M)Name | Synopsis | Description | Options | Examples | Exit Status | Attributes | See Also | Notes Name
Synopsisupdate_drv [-f | -v] [-n] driver_module
update_drv [-b basedir] [-f | -v] [-n] -a [-m 'permission']
[-i 'identify-name'] [-P 'privilege'] [-p 'policy'] driver_module
update_drv [-b basedir] [-f | -v] [-n] -d [-m 'permission']
[-i 'identify-name'] [-P 'privilege'] [-p 'policy'] driver_module
DescriptionThe update_drv command informs the system about attribute changes to an installed device driver. It can be used to re-read the driver.conf(4) file, or to add, modify, or delete a driver's minor node permissions or aliases. Without options, update_drv reloads the driver.conf file. Upon successfully updating the aliases, the driver binding takes effect upon reconfig boot or hotplug of the device. Upon successfully updating the permissions, only the new driver minor nodes get created with the modified set of file permissions. Existing driver minor nodes do not get modified. Options
The following options are supported: ExamplesExample 1 Adding or Modifying an Existing Minor Permissions EntryThe following command adds or modifies the exisitng minor permissions entry of the clone driver:
Example 2 Removing All Minor Permissions EntriesThe following command removes all minor permission entries of the usbprn driver, the USB printer driver:
Example 3 Adding a Driver Aliases EntryThe following command adds a driver aliases entry of the ugen driver with the identity string of usb459,20:
Example 4 Re-reading the driver.conf File For the ohci DriverThe following command re-reads the driver.conf(4) file.
Example 5 Requiring a Self-defined Privilege to Open a tcp SocketThe following command requires a self-defined privilege to open a tcp socket:
Example 6 Establishing a Path-oriented AliasThe following command establishes a path-oriented alias to force a specific driver, qlt, to be used for a particular device path:
Exit StatusAttributesSee attributes(5) for descriptions of the following attributes:
See AlsoNotesIf -a or -d options are specified, update_drv does not reread the driver.conf file. A forced update of the driver.conf file reloads the driver.conf file without reloading the driver binary module. In this case, devices which cannot be detached reference driver global properties from the old driver.conf file, while the remaining driver instances reference global properties in the new driver.conf file. It is possible to add an alias , which changes the driver binding of a device already being managed by a different driver. A force update with the -a option tries to bind to the new driver and report error if it cannot. If you specify more than one of the -m, -i, -P or -p options, a force flag tries to modify aliases or permissions. This is done even if the other operation fails and vice-versa. Name | Synopsis | Description | Options | Examples | Exit Status | Attributes | See Also | Notes |
||||||||||