昇腾社区首页
中文
注册
开发者
下载

EndPointLoc

功能说明

定义Endpoint位置类型结构体。

定义原型

typedef struct {
    EndpointLocType locType;        /* Endpoint的位置类别 */
    union {
        uint8_t raws[60];           /* 通用数据 */
        struct {
            uint32_t devPhyId;      /* 设备物理ID */
            uint32_t superDevId;    /* 超节点Device Id */
            uint32_t serverIdx;     /* Server的索引 */
            uint32_t superPodIdx;   /* 超节点位置索引 */
        } device;                   /* 当locType为DEVICE时使用 */
        struct {
            uint32_t id;            /* 普通ID,当locType为HOST等时使用 */
        } host;
    };
} EndpointLoc;