Page MenuHomeFreeBSD

subr_bus: add a list of attached children to record their order
AbandonedPublic

Authored by avg on Jun 22 2018, 10:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 23 2023, 9:17 AM
Unknown Object (File)
Nov 9 2023, 1:40 AM
Unknown Object (File)
Nov 7 2023, 11:22 AM
Unknown Object (File)
Nov 7 2023, 1:36 AM
Unknown Object (File)
Oct 6 2023, 10:14 AM
Unknown Object (File)
Oct 6 2023, 12:38 AM
Unknown Object (File)
Jul 3 2023, 6:52 AM
Unknown Object (File)
Jun 15 2023, 7:00 PM
Subscribers
None

Details

Reviewers
imp
jhb
Summary

This list (TAILQ actually) is used to suspend / shutdown / detach child
devices in the order opposite to the order in which they attached.
Also, this list is used to resume the child device in their attachment
order.

This is a followup to rS333268 that used device order for those tasks.
Devices generally attach in their order, but not always, because, for
example, of bus passes. So, now we record the real attachment order
instead of approximating it. Note that the order is per bus, not
global.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 17536
Build 17357: arc lint + arc unit