ApuIsVirtualAddressValid

Verifies that the virtual address specified was allocated with ApuAlloc, is valid and that the corresponding APU physical address has the specified alignment.

Syntax

bool ApuIsVirtualAddressValid(
         const void *virtualAddress,
         UINT32 physicalAlignmentInBytes
)  

Parameters

virtualAddress
Type: void *

[in] The virtual address.

physicalAlignmentInBytes
Type: UINT32 

[in] The expected alignment of the physical address.

Return value

Type: bool 

Returns true if the virtual address is valid, false otherwise.

Requirements

Header: Declared in apu.h.

Library: Use acphal.lib.