Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144369777
D52050.id160680.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
751 B
Referenced Files
None
Subscribers
None
D52050.id160680.diff
View Options
diff --git a/lib/libdevctl/devctl.3 b/lib/libdevctl/devctl.3
--- a/lib/libdevctl/devctl.3
+++ b/lib/libdevctl/devctl.3
@@ -381,6 +381,10 @@
.El
.Pp
The
+.Fn devctl_clear_driver
+function will not fail if no suitable new driver for the device could be found.
+.Pp
+The
.Fn devctl_rescan
function may fail if:
.Bl -tag -width Er
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -5934,7 +5934,8 @@
dev->flags &= ~DF_FIXEDCLASS;
dev->flags |= DF_WILDCARD;
devclass_delete_device(dev->devclass, dev);
- error = device_probe_and_attach(dev);
+ if ((error = device_probe(dev)) == 0)
+ error = device_attach(dev);
break;
case DEV_RESCAN:
if (!device_is_attached(dev)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 2:25 AM (19 h, 51 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28526113
Default Alt Text
D52050.id160680.diff (751 B)
Attached To
Mode
D52050: 'devctl clear driver' shall not fail if no driver has been found
Attached
Detach File
Event Timeline
Log In to Comment