Function stack::alloc_stack
source · pub fn alloc_stack(
size_in_pages: usize,
page_table: &mut Mapper
) -> Option<Stack>
Expand description
Allocates a new stack and maps it to the active page table.
This also reserves an unmapped guard page beneath the bottom of the stack in order to catch stack overflows.
Returns the newly-allocated stack and a VMA to represent its mapping.