1

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?

Unheilig
  • 16,196
  • 193
  • 68
  • 98
nicelhc13
  • 129
  • 1
  • 1
  • 5

1 Answers1

0

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

Community
  • 1
  • 1
  • Thank you for reply. Your explanation is really helpful for me. but actually I 'm curious that how can I access all the pages(such as traversing page table or page cache..) However, that example shows just one task. Could you help? – nicelhc13 Jun 09 '15 at 07:48