aclrtUnmapMem
Applicable Products
|
Product |
Supported |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function
Unmaps virtual memory from physical memory.
- Call aclrtReserveMemAddress to allocate virtual memory.
- Call aclrtMallocPhysical to allocate physical memory.
- Call aclrtMapMem to map virtual memory to physical memory.
- Call specific task APIs to execute tasks.
- Call aclrtUnmapMem to cancel the mapping between virtual memory and physical memory.
- Call aclrtFreePhysical to free physical memory.
- Call aclrtReleaseMemAddress to free virtual memory.
Prototype
1
|
aclError aclrtUnmapMem(void *virPtr) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
virPtr |
Input |
Pointer to the virtual memory address to be unmapped. |
Returns
0 on success; otherwise, failure. For details, see aclError.