![]() |
![]() |
Data Structures | |
struct | Rm_ServiceRespInfo |
RM service response information used by RM to provide service request results back to the application components. More... | |
struct | Rm_ServiceCallback |
RM service callback function. More... | |
struct | Rm_ServiceReqInfo |
RM service request information. More... | |
struct | Rm_ServiceHandle |
RM service handle provided to application components for requesting services. More... | |
Enumerations | |
enum | Rm_ServiceType { Rm_service_RESOURCE_ALLOCATE_INIT = 0, Rm_service_RESOURCE_ALLOCATE_USE, Rm_service_RESOURCE_FREE, Rm_service_RESOURCE_STATUS, Rm_service_RESOURCE_MAP_TO_NAME, Rm_service_RESOURCE_GET_BY_NAME, Rm_service_RESOURCE_UNMAP_NAME, Rm_service_LAST } |
RM service types. More... | |
Functions | |
Rm_ServiceHandle * | Rm_serviceOpenHandle (Rm_Handle rmHandle, int32_t *result) |
int32_t | Rm_serviceCloseHandle (Rm_ServiceHandle *rmServiceHandle) |
enum Rm_ServiceType |
RM service types.
int32_t Rm_serviceCloseHandle | ( | Rm_ServiceHandle * | rmServiceHandle | ) |
Description
This function closes a RM instance's service handle
[in] | rmServiceHandle | RM instance service handle to be closed. |
Success | - RM_OK |
Failure | - RM_ERROR_SERVICE_HANDLE_ALREADY_CLOSED |
Rm_ServiceHandle* Rm_serviceOpenHandle | ( | Rm_Handle | rmHandle, |
int32_t * | result | ||
) |
Description
This function returns a RM service handle to the application to provide services to software components (LLDs, BIOS, etc) that want to use RM for resource management. Only one service handle can be opened from each RM instance.
[in] | rmHandle | RM instance handle from which the service handle will be opened |
[out] | result | Pointer to a signed int used to return any errors encountered during the instance initialization process. |
Success | - Rm_ServiceHandle and result = RM_OK |
Failure | - NULL Rm_ServiceHandle and result = RM_ERROR_SERVICE_HANDLE_MEM_ALLOC_FAILED |