Page MenuHomeFreeBSD

Fix PCI bus detach to delete child devices.
ClosedPublic

Authored by jhb on Apr 20 2016, 2:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 11 2024, 5:11 PM
Unknown Object (File)
Dec 22 2023, 9:56 PM
Unknown Object (File)
Dec 20 2023, 11:12 AM
Unknown Object (File)
Dec 16 2023, 5:38 PM
Unknown Object (File)
Nov 25 2023, 8:14 PM
Unknown Object (File)
Nov 13 2023, 12:10 PM
Unknown Object (File)
Nov 9 2023, 11:16 PM
Unknown Object (File)
Nov 4 2023, 4:41 PM
Subscribers

Details

Summary

Fix PCI bus detach to delete child devices.

Arguably, bus_generic_detach() should be calling device_delete_children()
as most (if not all) buses should delete child devices when detaching,
but that's a larger problem to solve.

If I had my druthers I'd probably rename bus_generic_detach() to
device_detach_children() and change bus_generic_detach() to call
device_detach_children() followed by device_delete_children().

Test Plan
  • the hotplug patches detach (and delete) the PCI bus on card insertion and exercised this change

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb retitled this revision from to Fix PCI bus detach to delete child devices..
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.