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

Function platform_alloc_contiguous

loader/efi/src/platform.c:134–138  ·  view source on GitHub ↗

* <!-- description --> * @brief This function allocates read/write virtual memory from the * kernel. This memory is physically contiguous. The resulting * pointer is at least 4k aligned, so use this function sparingly * as it will always allocate at least one page. Use * platform_free_contiguous() to release this memory. * * @note This function must zero the allocated me

Source from the content-addressed store, hash-verified

132 * Returns a nullptr on failure.
133 */
134NODISCARD void *
135platform_alloc_contiguous(uint64_t const size)
136{
137 return platform_alloc(size);
138}
139
140/**
141 * <!-- description -->

Callers 1

alloc_mk_huge_poolFunction · 0.50

Calls 1

platform_allocFunction · 0.70

Tested by

no test coverage detected