MCPcopy Create free account
hub / github.com/ByteCorum/DragonBurn / FreePool

Method FreePool

DragonBurn-kernel/intel_driver.cpp:638–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638bool intel_driver::FreePool(uint64_t address) {
639 if (!address)
640 return 0;
641
642 static uint64_t kernel_ExFreePool = GetKernelModuleExport(intel_driver::ntoskrnlAddr, "ExFreePool");
643
644 if (!kernel_ExFreePool) {
645 Log::Warning("Failed to find ExAllocatePool", false);
646 return 0;
647 }
648
649 return CallKernelFunction<void>(nullptr, kernel_ExFreePool, address);
650}
651
652uint64_t intel_driver::GetKernelModuleExport(uint64_t kernel_module_base, const std::string& function_name) {
653 if (!kernel_module_base)

Callers

nothing calls this directly

Calls 1

WarningFunction · 0.50

Tested by

no test coverage detected