From 7c3a40bc47f46f785fce8afae456c640ceb040c2 Mon Sep 17 00:00:00 2001 From: ngiddings Date: Sat, 10 Apr 2021 19:15:59 -0500 Subject: [PATCH] Added declaration for page count function --- include/pageallocator.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/pageallocator.h b/include/pageallocator.h index 63d564c..bccca63 100644 --- a/include/pageallocator.h +++ b/include/pageallocator.h @@ -55,4 +55,12 @@ physaddr_t reserve_page(struct page_stack_t *stack); * @param stack * @param location */ -int free_page(struct page_stack_t *stack, physaddr_t location); \ No newline at end of file +int free_page(struct page_stack_t *stack, physaddr_t location); + +/** + * @brief Computes the number of available pages. + * + * @param stack + * @return size_t + */ +size_t free_page_count(struct page_stack_t *stack);