---
title: EndPointLoc
description: "定义Endpoint位置类型结构体。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/programug/commopdev/hcclopdevapi_07_0016.html
sourcePath: /source/zh/canncommercial/900/programug/commopdev/hcclopdevapi_07_0016.html
indexId: dc86113945ec2ebdf4ef974a164af7414238c80e425a5e97a187c94800894c1a75
---
# 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;
```
