Page MenuHomeFreeBSD

stand/kshim: Implement bus_detach_children
ClosedPublic

Authored by jhb on Jan 10 2025, 3:22 AM.
Tags
None
Referenced Files
F137962109: D48410.diff
Thu, Nov 27, 5:30 PM
Unknown Object (File)
Tue, Nov 25, 11:11 AM
Unknown Object (File)
Mon, Nov 24, 7:00 PM
Unknown Object (File)
Sun, Nov 23, 12:55 PM
Unknown Object (File)
Fri, Nov 21, 4:50 AM
Unknown Object (File)
Sun, Nov 16, 2:17 PM
Unknown Object (File)
Fri, Oct 31, 5:00 AM
Unknown Object (File)
Oct 27 2025, 2:51 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 Not Applicable
Unit
Tests Not Applicable

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.