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/vmem.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/apos/vmem.h') diff --git a/include/apos/vmem.h b/include/apos/vmem.h index 38bad16..5cbe7db 100644 --- a/include/apos/vmem.h +++ b/include/apos/vmem.h @@ -27,6 +27,19 @@ */ vm_t alloc_uvmem(struct tcb *r, size_t size, vmflags_t flags); +/** + * Allocate one physical page for user virtual memory. + * + * @param r Process to allocate memory in. + * @param size Minimum size of allocation. + * @param flags Flags of allocation. + * @param asize Where to write actual size of allocation. + * @param paddr Where to write physical address of page. + * @return Start of allocation when succesful, \c NULL otherwise. + */ +vm_t alloc_uvpage(struct tcb *r, size_t size, vmflags_t flags, + size_t *asize, pm_t *paddr); + /** * Allocate fixed user virtual memory. * -- cgit v1.3