Page MenuHomeFreeBSD

stand/kshim: Implement bus_detach_children
ClosedPublic

Authored by jhb on Jan 10 2025, 3:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 22, 2:35 AM
Unknown Object (File)
Mon, Jun 22, 12:56 AM
Unknown Object (File)
Sun, Jun 21, 10:32 PM
Unknown Object (File)
Fri, May 29, 4:10 PM
Unknown Object (File)
Thu, May 28, 1:34 PM
Unknown Object (File)
May 26 2026, 8:20 AM
Unknown Object (File)
May 25 2026, 4:04 PM
Unknown Object (File)
May 20 2026, 12:16 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.