Installation and Usage

Installation

powerapi has been incorporated into openEuler22.03 LTS SP4. You can run the yum command to install powerapi:

sh
yum install powerapi

Usage

After powerapi is installed, pwrapis 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.