aclrtMemSetAccess
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Sets the memory access permission.
Prototype
aclError aclrtMemSetAccess(void* virPtr, size_t size, aclrtMemAccessDesc* desc, size_t count)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
virPtr |
Input |
Start address of the virtual memory. The value must be the same as the aclrtMapMem API's virPtr address. |
size |
Input |
Length of the virtual memory. The value must be the same as the aclrtMapMem API's size. |
desc |
Input |
Memory access configuration, including access protection flag and memory location. |
count |
Input |
Length of the desc array. |
Returns
0 on success; else, failure. For details, see aclError.
Parent topic: Memory Management