summaryrefslogtreecommitdiff
path: root/src/kernel/mem/virt.h
diff options
context:
space:
mode:
authordzwdz2021-09-05 18:55:32 +0200
committerdzwdz2021-09-05 18:55:32 +0200
commit0b2b263060907e8bf732c1d27c66b7358af01e9f (patch)
tree321e459503ed2694126b2556e3064f95006c0148 /src/kernel/mem/virt.h
parent838b142b7374150df63ec02b02377c114a14b314 (diff)
make virt_iter support iterating over physical memory too
Diffstat (limited to 'src/kernel/mem/virt.h')
-rw-r--r--src/kernel/mem/virt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/mem/virt.h b/src/kernel/mem/virt.h
index 98a7a16..e87a9fe 100644
--- a/src/kernel/mem/virt.h
+++ b/src/kernel/mem/virt.h
@@ -17,6 +17,7 @@ struct virt_iter {
bool _writeable;
};
+/* if pages == NULL, create an iterator over physical memory. */
void virt_iter_new(
struct virt_iter *iter, user_ptr virt, size_t length,
struct pagedir *pages, bool user, bool writeable);