MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / platform_free_contiguous

Function platform_free_contiguous

loader/windows/src/platform.c:186–194  ·  view source on GitHub ↗

* <!-- description --> * @brief This function frees memory previously allocated using the * platform_alloc_contiguous() function. * * <!-- inputs/outputs --> * @param ptr the pointer returned by platform_alloc_contiguous(). If ptr is * passed a nullptr, it will be ignored. Attempting to free memory * more than once results in UB. * @param size the number of bytes that wer

Source from the content-addressed store, hash-verified

184 * may or may not be ignored depending on the platform.
185 */
186void
187platform_free_contiguous(void const *const ptr, uint64_t const size) NOEXCEPT
188{
189 (void)size;
190
191 if (NULLPTR != ptr) {
192 MmFreeContiguousMemory((void *)ptr);
193 }
194}
195
196/**
197 * <!-- description -->

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected