aboutsummaryrefslogtreecommitdiff
path: root/include/apos/mem.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-01-26 15:53:16 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2023-01-26 15:53:16 +0200
commit8a5e4cf53d981e793fca90d9b51bd395265cf4db (patch)
tree245aabe14f45aa717f4f3156bdcfc1afb0388131 /include/apos/mem.h
parent5dad7c7ecccaa1e11be23f53e3198af6933c9f60 (diff)
downloadkmi-8a5e4cf53d981e793fca90d9b51bd395265cf4db.tar.gz
kmi-8a5e4cf53d981e793fca90d9b51bd395265cf4db.zip
add req_page syscall
Diffstat (limited to 'include/apos/mem.h')
-rw-r--r--include/apos/mem.h8
1 files changed, 8 insertions, 0 deletions
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
@@ -196,6 +196,14 @@ extern size_t __mm_page_shift;
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.
*
* @param max_order Maximum order the current system supports.