|
Userspace Resource Manager
|
Refer Relay.cpp in Examples section, for basic code-guidance.
Resource Tuner allows requests to be forwarded to user-defined features (or functionality) via the use of Features and Relay Signals.
To register features, make use of the ExtFeaturesConfig.yaml file. For example, a sample feature might look like:
When a relaySignal API request is received for either Signal with the SigCode: 0x000dbbca or 0x000a00ff, then the Request shall be forwarded to the feature defined via the shared lib: /usr/lib/libtesttuner.so
Resoruce Tuner exposes 3 hooks for any feature registered:
In the above example, the lib: "/usr/lib/libtesttuner.so" is required to provide implementations for all of these hooks.
Refer Relay.cpp in Examples Section for more details on this, and the expected signature of these functions.
Since this config file is not common across targets, hence Resource Tuner does not provide a Common (or Base) version of this file (like it does for say Resources or Properties).
If you would like to register your own Features, then you need to provide your own version of this file. To register the file with Resource Tuner one of the following 2 strategies can be followed:
For example: