Page MenuHomeFreeBSD

rman: Add rman_get/set_type
ClosedPublic

Authored by jhb on Feb 27 2024, 7:46 PM.
Tags
None
Referenced Files
F166736038: D44122.diff
Sat, Aug 15, 11:29 PM
Unknown Object (File)
Tue, Aug 11, 10:50 AM
Unknown Object (File)
Tue, Aug 11, 10:50 AM
Unknown Object (File)
Tue, Aug 4, 8:17 AM
Unknown Object (File)
Thu, Jul 30, 8:12 AM
Unknown Object (File)
Sat, Jul 18, 5:24 PM
Unknown Object (File)
Sat, Jul 18, 1:33 PM
Unknown Object (File)
Jul 17 2026, 2:56 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