I want to get a clean page list or inactive/active lists.
But when I used LIST_HEAD(clean_pages)
, LIST_HEAD(l_inactive)
or LIST_HEAD(l_active)
, all the lists are empty..
In addition, LIST_HEAD(l_hold)
is also empty..
Is there any way to get a clean pages from Linux Kernel? Or is there any way to traverse all the pages in the page table?
the LIST_HEAD macro declares and initializes an empty list... you should look at its defintion in include/linux/list.h
maybe these can help:
Page Table Management
Traversing all the physical pages of a process