Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/devctl/devctl.8
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
.Ar device | .Ar device | ||||
.Nm | .Nm | ||||
.Cm set driver | .Cm set driver | ||||
.Op Fl f | .Op Fl f | ||||
.Ar device driver | .Ar device driver | ||||
.Nm | .Nm | ||||
.Cm rescan | .Cm rescan | ||||
.Ar device | .Ar device | ||||
.Nm | |||||
.Cm delete | |||||
.Op Fl f | |||||
.Ar device | |||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The | The | ||||
.Nm | .Nm | ||||
utility adjusts the state of individual devices in the kernel's | utility adjusts the state of individual devices in the kernel's | ||||
internal device hierarchy. | internal device hierarchy. | ||||
Each invocation of | Each invocation of | ||||
.Nm | .Nm | ||||
consists of a single command followed by command-specific arguments. | consists of a single command followed by command-specific arguments. | ||||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
attached to the new device driver. | attached to the new device driver. | ||||
If the device is already attached to a device driver and the | If the device is already attached to a device driver and the | ||||
.Fl f | .Fl f | ||||
flag is not specified, | flag is not specified, | ||||
the device will not be changed. | the device will not be changed. | ||||
.It Cm rescan Ar device | .It Cm rescan Ar device | ||||
Rescan a bus device checking for devices that have been added or | Rescan a bus device checking for devices that have been added or | ||||
removed. | removed. | ||||
.It Xo Cm delete | |||||
.Op Fl | |||||
.Ar device | |||||
.Xc | |||||
Delete the device from the device tree. | |||||
If the | |||||
.Fl f | |||||
flag is specified, | |||||
the device will be deleted even if it is physically present. | |||||
This command should be used with care as a device that is deleted but present | |||||
can no longer be used unless the parent bus device rediscovers the device via | |||||
a rescan request. | |||||
.El | .El | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr devctl 3 , | .Xr devctl 3 , | ||||
.Xr devinfo 8 | .Xr devinfo 8 | ||||
.Sh HISTORY | .Sh HISTORY | ||||
The | The | ||||
.Nm | .Nm | ||||
utility first appeared in | utility first appeared in | ||||
.Fx 10.3 . | .Fx 10.3 . |