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

Function free_mk_stack

loader/src/free_mk_stack.c:40–47  ·  view source on GitHub ↗

* <!-- description --> * @brief Releases a previously allocated span_t that was allocated * using the alloc_mk_stack function. * * <!-- inputs/outputs --> * @param pmut_stack the span_t to free. */

Source from the content-addressed store, hash-verified

38 * @param pmut_stack the span_t to free.
39 */
40void
41free_mk_stack(struct span_t *const pmut_stack) NOEXCEPT
42{
43 platform_expects(NULLPTR != pmut_stack);
44
45 platform_free(pmut_stack->addr, pmut_stack->size);
46 platform_memset(pmut_stack, ((uint8_t)0), sizeof(struct span_t));
47}

Callers 3

stop_vmm_per_cpuFunction · 0.85
testsFunction · 0.85
testsFunction · 0.85

Calls 3

platform_expectsFunction · 0.50
platform_freeFunction · 0.50
platform_memsetFunction · 0.50

Tested by 2

testsFunction · 0.68
testsFunction · 0.68