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)
Sat, Apr 11, 7:50 PM
Unknown Object (File)
Sat, Apr 11, 12:05 AM
Unknown Object (File)
Thu, Apr 9, 3:39 AM
Unknown Object (File)
Tue, Apr 7, 9:11 PM
Unknown Object (File)
Sun, Apr 5, 5:01 PM
Unknown Object (File)
Sun, Apr 5, 11:03 AM
Unknown Object (File)
Wed, Mar 25, 2:18 AM
Unknown Object (File)
Wed, Mar 25, 1:36 AM
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.