vm: object: add prefetch function to fetch missing pages

This commit is contained in:
2026-04-30 19:09:41 +01:00
parent 607efa961f
commit d63c2dbd12
3 changed files with 78 additions and 9 deletions
+10
View File
@@ -98,6 +98,16 @@ extern kern_status_t vm_object_attach_cow(
struct vm_object *vmo,
unsigned long *irq_flags);
/* prefetch any missing pages in the specified range of a vm-object.
* any lazy-allocated pages will be allocated.
* any missing pages will be requested from the vm-controller, if one is
* attached. */
extern kern_status_t vm_object_prefetch(
struct vm_object *vo,
off_t offset,
size_t length,
unsigned long *irq_flags);
extern struct vm_page *vm_object_get_page(
struct vm_object *vo,
off_t offset,