Page MenuHomeFreeBSD

rman: Add rman_get/set_type
ClosedPublic

Authored by jhb on Feb 27 2024, 7:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 22, 1:18 AM
Unknown Object (File)
Mar 13 2024, 10:13 PM
Unknown Object (File)
Mar 6 2024, 8:16 AM
Unknown Object (File)
Mar 2 2024, 9:04 PM
Unknown Object (File)
Mar 2 2024, 3:01 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable