编程接口指南

数据结构

rsm_get_topology_data 返回的指针会引用 rsm_topology_t structure。此结构为每个本地控制器提供本地节点 ID 以及指向 connections_t 结构的指针数组。

typedef struct rsm_topology {

   rsm_nodeid_t    local_nodeid;

   uint_t          local_cntrl_count;

   connections_t   *connections[1];

} rsm_topology_t;