Programming Interfaces Guide

rsm_get_controller

int rsm_get_controller(char *name, rsmapi_controller_handle_t *controller);

The rsm_get_controller operation acquires a controller handle for the given controller instance, such as sci0 or loopback. The returned controller handle is used for subsequent RSM library calls.

Return Values: Returns 0 if successful. Returns an error value otherwise.

RSMERR_BAD_CTLR_HNDL

Invalid controller handle

RSMERR_CTLR_NOT_PRESENT

Controller not present

RSMERR_INSUFFICIENT_MEM

Insufficient memory

RSMERR_BAD_LIBRARY_VERSION

Invalid library version

RSMERR_BAD_ADDR

Bad address