bindid_to_lcpuid Subroutine
Purpose
Returns the logical CPU ID.
Library
perfstat library (libperfstat.a)
Syntax
#include <libperfstat.h>
cpu_t bindid_to_lcpuid (id)
cpu_t id;
Description
The bindid_to_lcpuid subroutine returns the logical CPU identifier of the bind CPU identifier. This subroutine is defined in the libperfstat.h file.
Parameters
Item | Description |
---|---|
id | Specifies the bind CPU identifier that needs to be converted into the logical CPU ID. |
Return values
Upon successful completion, the logical CPU ID is returned. If unsuccessful, a value of -1 is returned and the errno parameter is set to the appropriate error code.
Error codes
Error | Description |
---|---|
EINVAL | One of the parameters is not valid. |