vm: address-space: add function to translate virtual addresses to physical

This commit is contained in:
2026-03-15 22:22:25 +00:00
parent a2e918c428
commit 8a38d940cc
2 changed files with 46 additions and 3 deletions

View File

@@ -5,7 +5,8 @@
#include <kernel/pmap.h>
#include <kernel/vm.h>
#define ADDRESS_SPACE_COPY_ALL ((size_t)-1)
#define ADDRESS_SPACE_COPY_ALL ((size_t) - 1)
#define ADDRESS_SPACE_F_
struct address_space;
struct vm_object;
@@ -158,6 +159,12 @@ extern kern_status_t address_space_memmove_v(
size_t bytes_to_move,
size_t *nr_bytes_moved);
extern kern_status_t address_space_translate(
struct address_space *space,
virt_addr_t in,
phys_addr_t *out,
unsigned long *irq_flags);
void address_space_dump(struct address_space *region);
DEFINE_OBJECT_LOCK_FUNCTION(address_space, s_base)