page refcounts?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

How does the kernel determine when a page is unused?  I see that
__get_free_pages() returns pages that have no refcount.
The first page looks like:
flags:0x80000000 mapping:00000000 mapcount:0 count:1
And the other 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?

Thanks in advance,
Avishay Traeger


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux