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);