LIST_HEAD(clean_pages) is not working in Linux Kernel

92 Views Asked by At

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?

1

There are 1 best solutions below

1
On

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:

  1. Page Table Management

  2. Traversing all the physical pages of a process