Installation and Usage
Installation
powerapi has been incorporated into openEuler22.03 LTS SP3. You can run the yum
command to install powerapi:
yum install powerapi
Usage
After powerapi is installed, pwarapis automatically runs to provide power consumption management services for eagle and third-party systems. Currently, powerapi cannot be used through the CLI. To use a powerapi function, you need to install powerapi-devel and call the functions after the header file is included in the source code. For details, see Development Using powerapi.