---
title: aclrtMemAccessDesc
description: "```"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclcppdevg_03_2047.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclcppdevg_03_2047.html
indexId: eafd178c46bd08bad17ba9448f334a27de1c17d4aafb15c625fdac3721317e6568
---
# aclrtMemAccessDesc

```
typedef struct {
    aclrtMemAccessFlags flags;   
    aclrtMemLocation location;   
    uint8_t rsv[12];             
} aclrtMemAccessDesc;
```

| 成员名称 | 描述 |
| --- | --- |
| flags | 内存访问保护标志。类型定义请参见aclrtMemAccessFlags。 当前仅支持ACL\_RT\_MEM\_ACCESS\_FLAGS\_READWRITE，表示地址范围可读可写。 |
| location | 内存所在位置。类型定义请参见aclrtMemLocation。 当前仅支持将aclrtMemLocation.type设置为ACL\_MEM\_LOCATION\_TYPE\_HOST或ACL\_MEM\_LOCATION\_TYPE\_DEVICE。当aclrtMemLocation.type为ACL\_MEM\_LOCATION\_TYPE\_HOST时，aclrtMemLocation.id无效，固定设置为0即可。 |
| rsv | 预留参数，当前固定配置为0。 |
