diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-01-26 15:53:16 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-01-26 15:53:16 +0200 |
| commit | 8a5e4cf53d981e793fca90d9b51bd395265cf4db (patch) | |
| tree | 245aabe14f45aa717f4f3156bdcfc1afb0388131 /include/apos/mem.h | |
| parent | 5dad7c7ecccaa1e11be23f53e3198af6933c9f60 (diff) | |
| download | kmi-8a5e4cf53d981e793fca90d9b51bd395265cf4db.tar.gz kmi-8a5e4cf53d981e793fca90d9b51bd395265cf4db.zip | |
add req_page syscall
Diffstat (limited to 'include/apos/mem.h')
| -rw-r--r-- | include/apos/mem.h | 8 |
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. |
