Resource Tuner
Loading...
Searching...
No Matches
SysResource Struct Reference

Used to store information regarding Resources / Tunables which need to be Provisioned as part of the tuneResources API. More...

#include <Common.h>

Public Attributes

uint32_t mResCode
 A uniqued 32-bit (unsigned) identifier for the Resource.
 
int32_t mResInfo
 Holds Logical Core and Cluster Information:
 
int32_t mOptionalInfo
 Field to hold optional information for Request Processing.
 
int32_t mNumValues
 Number of values to be configured for the Resource, both single-valued and multi-valued Resources are supported.
 
union { 
 
   int32_t   value 
 Use this field for single Valued Resources.
 
   int32_t *   values 
 Use this field for Multi Valued Resources.
 
mResValue 
 The value to be Configured for this Resource Node.
 

Detailed Description

Used to store information regarding Resources / Tunables which need to be Provisioned as part of the tuneResources API.

Examples
CoreAPIsExamples.c, and CoreAPIsExamples.cpp.

Definition at line 18 of file Common.h.

Member Data Documentation

◆ mResCode

uint32_t SysResource::mResCode

A uniqued 32-bit (unsigned) identifier for the Resource.

  • The last 16 bits (17-32) are used to specify the ResId
  • The next 8 bits (9-16) are used to specify the ResType (type of the Resource)
  • In addition for Custom Resources, then the MSB must be set to 1 as well
Examples
CoreAPIsExamples.c, and CoreAPIsExamples.cpp.

Definition at line 25 of file Common.h.

◆ mResInfo

int32_t SysResource::mResInfo

Holds Logical Core and Cluster Information:

  • The last 8 bits (25-32) hold the Logical Core Value
  • The next 8 bits (17-24) hold the Logical Cluster Value
Examples
CoreAPIsExamples.cpp.

Definition at line 31 of file Common.h.


The documentation for this struct was generated from the following file: