Data Structures | Enumerations | Functions
RM Services API
Resource Manager API

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_ServiceHandleRm_serviceOpenHandle (Rm_Handle rmHandle, int32_t *result)
int32_t Rm_serviceCloseHandle (Rm_ServiceHandle *rmServiceHandle)

Enumeration Type Documentation

RM service types.

Enumerator:
Rm_service_RESOURCE_ALLOCATE_INIT 

RM resource allocate for initialization service

Rm_service_RESOURCE_ALLOCATE_USE 

RM resource allocate for use service

Rm_service_RESOURCE_FREE 

RM resource free service

Rm_service_RESOURCE_STATUS 

RM resource status service - returns the reference count for specified resource.

Rm_service_RESOURCE_MAP_TO_NAME 

RM NameServer map resource to name service

Rm_service_RESOURCE_GET_BY_NAME 

RM NameServer get resource by name service

Rm_service_RESOURCE_UNMAP_NAME 

RM NameServer unmap resource from name service

Rm_service_LAST 

DO NOT USE: Last type


Function Documentation

int32_t Rm_serviceCloseHandle ( Rm_ServiceHandle rmServiceHandle)

Description
This function closes a RM instance's service handle

Parameters:
[in]rmServiceHandleRM instance service handle to be closed.
Return values:
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.

Parameters:
[in]rmHandleRM instance handle from which the service handle will be opened
[out]resultPointer to a signed int used to return any errors encountered during the instance initialization process.
Return values:
Success- Rm_ServiceHandle and result = RM_OK
Failure- NULL Rm_ServiceHandle and result = RM_ERROR_SERVICE_HANDLE_MEM_ALLOC_FAILED

Copyright 2014, Texas Instruments Incorporated