HomeFreeBSD

rman: Add rman_get/set_type

Description

rman: Add rman_get/set_type

This permits associating a resource type (e.g. SYS_RES_MEMORY) with a
struct resource.

I considered adding a new field to struct rman to store the type and
only providing rman_get_type as an accessor. However, changing
'struct rman' is an ABI breakage. I might revisit this in main, but
the current approach is MFC'able.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44122

(cherry picked from commit b30a80b65587fb9fd4a5f012d606dbd0c6239a46)

Details

Provenance
jhbAuthored on Mar 13 2024, 10:05 PM
Reviewer
imp
Differential Revision
D44122: rman: Add rman_get/set_type
Parents
rG0ed9854b5bf4: Revert "new-bus: Disable assertions for rman mismatches for activate/deactivate"
Branches
Unknown
Tags
Unknown