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

Details

Provenance
jhbAuthored on Mar 13 2024, 10:05 PM
Reviewer
imp
Differential Revision
D44122: rman: Add rman_get/set_type
Parents
rG85df11a1dec6: ktls: deep copy tls_enable struct for in-kernel tcp consumers
Branches
Unknown
Tags
Unknown