Page MenuHomeFreeBSD

Add 'devctl delete' that calls device_delete_child().
ClosedPublic

Authored by jhb on Apr 20 2016, 2:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 9, 3:03 PM
Unknown Object (File)
Fri, Mar 22, 9:25 PM
Unknown Object (File)
Fri, Mar 22, 9:25 PM
Unknown Object (File)
Fri, Mar 22, 9:25 PM
Unknown Object (File)
Mar 8 2024, 6:25 AM
Unknown Object (File)
Feb 24 2024, 2:57 AM
Unknown Object (File)
Feb 22 2024, 3:16 PM
Unknown Object (File)
Jan 16 2024, 8:15 AM
Subscribers

Details

Summary

Add 'devctl delete' that calls device_delete_child().

'devctl delete' can be used to delete a device that is no longer present.
As a foot-shooting measure, 'delete' will not delete a device unless it's
parent bus says it is no longer present. This can be overridden by passing
the force ('-f') flag.

Note that this command should be used with care. If a device is deleted
that is actually present it can't be resurrected unless the parent bus
driver supports rescans.

Test Plan
  • delete a device on a PCI bus and then use devctl rescan to bring it back

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3341
Build 3376: arc lint + arc unit

Event Timeline

jhb retitled this revision from to Add 'devctl delete' that calls device_delete_child()..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added a reviewer: imp.
This revision was automatically updated to reflect the committed changes.