From 8a5e4cf53d981e793fca90d9b51bd395265cf4db Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 26 Jan 2023 15:53:16 +0200 Subject: add req_page syscall --- include/apos/mem.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/apos/mem.h') diff --git a/include/apos/mem.h b/include/apos/mem.h index 4db7a67..ea61aba 100644 --- a/include/apos/mem.h +++ b/include/apos/mem.h @@ -195,6 +195,14 @@ extern size_t __mm_page_shift; /** Gives access to global maximum order size. \global */ extern enum mm_order __mm_max_order; +/** + * Find nearest order to size. + * + * @param size Size to map to an order. + * @return Nearest order larger than \p size. + */ +enum mm_order nearest_order(size_t size); + /** * Initialize memory subsystem data. Populates __mm_* with data given. * -- cgit v1.3