Page MenuHomeFreeBSD

stand/kshim: Implement bus_detach_children
ClosedPublic

Authored by jhb on Jan 10 2025, 3:22 AM.
Tags
None
Referenced Files
F149534608: D48410.diff
Wed, Mar 25, 2:18 AM
F149530804: D48410.id.diff
Wed, Mar 25, 1:36 AM
Unknown Object (File)
Fri, Mar 13, 7:22 AM
Unknown Object (File)
Thu, Feb 26, 12:09 PM
Unknown Object (File)
Thu, Feb 26, 8:06 AM
Unknown Object (File)
Feb 8 2026, 9:28 AM
Unknown Object (File)
Feb 7 2026, 9:17 PM
Unknown Object (File)
Jan 31 2026, 12:05 PM
Subscribers

Details

Summary

While here, update bus_generic_detach to delete devices as in the
kernel.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61634
Build 58518: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jan 10 2025, 4:41 AM
markj added inline comments.
stand/kshim/bsd_kernel.c
689

device_delete_children() will call device_detach() on each child again, but I think that's harmless.

stand/kshim/bsd_kernel.c
689

Yes, and this is also true in the kernel implementation. The difference is that here we don't delete any devices if a child device vetos the detach operation.

This revision was automatically updated to reflect the committed changes.