Page MenuHomeFreeBSD

stand/kshim: Implement bus_detach_children
ClosedPublic

Authored by jhb on Fri, Jan 10, 3:22 AM.
Tags
None
Referenced Files
F107345501: D48410.diff
Sun, Jan 12, 7:38 PM
F107294940: D48410.id149115.diff
Sun, Jan 12, 3:22 AM
Unknown Object (File)
Sat, Jan 11, 9:49 AM
Unknown Object (File)
Sat, Jan 11, 9:45 AM
Unknown Object (File)
Sat, Jan 11, 6:30 AM
Unknown Object (File)
Sat, Jan 11, 4:26 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Fri, Jan 10, 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.