aclrtMemSetAccess
Applicable Products
|
Product |
Supported |
|---|---|
|
|
√ |
|
|
☓ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function
Sets the memory access permission.
Prototype
1
|
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 value of virPtr in the aclrtMapMem API. |
|
size |
Input |
Length of the virtual memory. The value must be the same as the value of size in the aclrtMapMem API. |
|
desc |
Input |
Memory access configuration, including access protection flags and memory location. For details about the type definition, see aclrtMemAccessDesc. |
|
count |
Input |
Length of the desc array. |
Returns
0 on success; otherwise, failure. For details, see aclError.