]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand: Move dev_cleanup into libsa
authorWarner Losh <imp@FreeBSD.org>
Wed, 11 Jan 2023 22:14:17 +0000 (15:14 -0700)
committerWarner Losh <imp@FreeBSD.org>
Wed, 11 Jan 2023 22:15:14 +0000 (15:15 -0700)
commitbf020787d5f1b4a1274135b49309f7e9ef3955e1
treec919209706461a002e6822fd1af61be754b910ce
parent1c1783d66bc81ebd0c1304b1f613a9403c073915
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
stand/common/bootstrap.h
stand/common/misc.c
stand/libsa/dev.c
stand/libsa/stand.h