Share via


NKPhysToVirt (Compact 7)

3/12/2014

This function translates a physical address in memory to a virtual address.

Syntax

LPVOID (*pfnPhysToVirt) (
  DWORD dwShiftedPhysAddr,
  BOOL fCached
);

Parameters

  • dwShiftedPhysAddr
    The physical address, page-aligned and shifted right by 8 bits.
  • fCached
    Value that indicates whether the address is cached. Must be set to true for a physical address in the OEMAddressTable structure. This parameter is ignored for addresses in the OEMDeviceTable structure.

Return Value

Returns a pointer to the virtual address. Return value is null for physical addresses in the OEMRamTable structure.

Remarks

The pfnPhysToVirt member of NKGLOBAL points to this function. This function supports up to 40 bits of physical addresses.

See Also

Reference

Kernel Functions Available to the OAL
NKVirtToPhys