Page MenuHomeFreeBSD

device_attach: Invoke BUS_CHILD_DETACHED if an attach routine fails
ClosedPublic

Authored by jhb on Oct 16 2024, 3:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 9:51 PM
Unknown Object (File)
Wed, Dec 4, 12:58 PM
Unknown Object (File)
Tue, Dec 3, 10:08 PM
Unknown Object (File)
Tue, Dec 3, 5:40 PM
Unknown Object (File)
Sun, Dec 1, 7:19 AM
Unknown Object (File)
Nov 9 2024, 11:06 PM
Unknown Object (File)
Nov 6 2024, 4:32 PM
Unknown Object (File)
Nov 6 2024, 4:22 PM
Subscribers

Diff Detail

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

Event Timeline

jhb requested review of this revision.Oct 16 2024, 3:27 PM

So long as the parent doesn't call the child's detach, this is great. I'm pretty sure this is the case, but we need to make sure there's no double freeing introduced

This revision is now accepted and ready to land.Oct 16 2024, 3:34 PM

I don't think the parent can interfere here as DEVICE_ATTACH calls the child method directly without giving the parent driver a chance to interpose.