lkml.org 
[lkml]   [2005]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectpage refcounts?
From
Date
Hello all,

How does the kernel determine when a page is unused? I see that
__get_free_pages() returns pages that have no refcount and no flags
indicating that they should not be reclaimed.

The first page that is returned looks like:
flags:0x80000000 mapping:00000000 mapcount:0 count:1

And the subsequent pages look like:
flags:0x80000000 mapping:00000000 mapcount:0 count:0

I am printing this out exactly the way bad_page() does. How does the
kernel know not to mess around with pages that have no refcount or any
flags to indicate that they are in use? I've already searched google
and checked a couple books, and couldn't find an answer.

Thanks in advance,
Avishay Traeger

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-12-29 16:01    [W:0.094 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site