HomeFreeBSD

Create wrapper for Giant taken for newbus

Description

Create wrapper for Giant taken for newbus

Create a wrapper for newbus to take giant and for busses to take it too.
bus_topo_lock() should be called before interacting with newbus routines
and unlocked with bus_topo_unlock(). If you need the topology lock for
some reason, bus_topo_mtx() will provide that.

Sponsored by: Netflix
Reviewed by: mav
Differential Revision: https://reviews.freebsd.org/D31831

(cherry picked from commit c6df6f5322f7004c71216391e1c0b374d853704a)

Details

Provenance
impAuthored on Dec 10 2021, 12:04 AM
manuCommitted on Jun 21 2022, 3:13 PM
Reviewer
mav
Differential Revision
D31831: Create wrapper for Giant taken for newbus
Parents
rG14f7dd4744e4: rip6: Fix a lock order reversal in rip6_bind()
Branches
Unknown
Tags
Unknown