PowerGetActive()

Updated: April 19, 2023

Query the kernel for a CPU's active frequency parameter

Synopsis:

#include <sys/neutrino.h>

int PowerGetActive(unsigned __cpu);

Arguments:

cpu
The CPU whose frequency you need to know.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The PowerGetActive() function queries the kernel for the specified CPU's active frequency.

Returns:

>0
Success. The ID of the power parameter with the specified CPU cluster's active frequency.
-1
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread No