MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / KbMapPhysicalMemory

Function KbMapPhysicalMemory

User-Bridge/API/User-Bridge.cpp:664–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662 }
663
664 BOOL WINAPI KbMapPhysicalMemory(
665 IN WdkTypes::PVOID PhysicalAddress,
666 ULONG Size,
667 WdkTypes::MEMORY_CACHING_TYPE CachingType,
668 OUT WdkTypes::PVOID* VirtualAddress
669 ) {
670 if (!Size || !VirtualAddress) return FALSE;
671 KB_MAP_PHYSICAL_MEMORY_IN Input = {};
672 KB_MAP_PHYSICAL_MEMORY_OUT Output = {};
673 Input.PhysicalAddress = PhysicalAddress;
674 Input.Size = Size;
675 Input.CachingType = CachingType;
676 BOOL Status = KbSendRequest(Ctls::KbMapPhysicalMemory, &Input, sizeof(Input), &Output, sizeof(Output));
677 *VirtualAddress = Output.VirtualAddress;
678 return Status;
679 }
680
681 BOOL WINAPI KbUnmapPhysicalMemory(IN WdkTypes::PVOID VirtualAddress, ULONG Size)
682 {

Callers

nothing calls this directly

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected