HomeFreeBSD

stand: Move dev_cleanup into libsa

Description

stand: Move dev_cleanup into libsa

Since dev_cleanup() walks through all the devsw devices with dv_cleanup
rotuines, move it into libsa rather than having it in
'common'. Logically, it operates only on things that are in libsa, and
would never be different for different loaders: either people would call
it as is, or they'd do the loop themselves with 'special' things inline
between calls to cleanup (not that I think that will ever be needed
though).

Sponsored by: Netflix
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D38004

(cherry picked from commit bf020787d5f1b4a1274135b49309f7e9ef3955e1)

Details

Provenance
impAuthored on Jan 11 2023, 10:14 PM
Reviewer
kevans
Differential Revision
D38004: stand: Move dev_cleanup into libsa
Parents
rGab377e0e5168: stand: Create common gen_setcurrdev and replace code
Branches
Unknown
Tags
Unknown