kernel/vm: Split the page writer into its own file and queue subclass.

This paves the way for there being more than one modified queue,
e.g. for each KDiskDevice.
This commit is contained in:
Augustin Cavalier
2026-04-06 22:23:26 -04:00
parent 62b8be7e22
commit 248735d5a2
7 changed files with 1034 additions and 998 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ void vm_page_free_etc(VMCache* cache, vm_page* page,
vm_page_reservation* reservation);
void vm_page_set_state(struct vm_page *page, int state);
void vm_page_requeue(struct vm_page *page, bool tail);
void vm_page_requeue(struct vm_page *page, bool tail, struct VMPageQueue** _queue);
// get some data about the number of pages in the system
page_num_t vm_page_num_pages(void);
+2
View File
@@ -39,6 +39,8 @@ void vm_debug_init();
void vm_kernel_args_init_post_area(kernel_args* args);
status_t vm_daemon_init(void);
bool vm_page_should_do_active_paging();
const char *page_state_to_string(int state);
// for debugging purposes only