mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* mm: how to check for kernel pages
@ 2007-02-04 11:02 Michal Hocko
  2007-02-04 13:57 ` Arjan van de Ven
  0 siblings, 1 reply; 6+ messages in thread
From: Michal Hocko @ 2007-02-04 11:02 UTC (permalink / raw)
  To: linux-kernel

Hi,
is there any effective and fast way how to find out whether page
given by its page frame number is currenly used by (mapped by) kernel?

At the time of checking I can rely that such page:
	- is not buddy allocator page and also not on per CPU lists
	- is not compound page
	- is not reserved page
Because I can check that from struct page's flags.
I was thinking about using rmap code to find all ptes, but I don't know
whether it is not too complicated way.

Thanks for all hints.

Please add me to Cc, because I am not the list member.
Best regards.
-- 
Michal Hocko


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-02-04 17:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-04 11:02 mm: how to check for kernel pages Michal Hocko
2007-02-04 13:57 ` Arjan van de Ven
2007-02-04 15:33   ` Michal Hocko
2007-02-04 15:45     ` Arjan van de Ven
2007-02-04 16:54       ` Michal Hocko
2007-02-04 17:49         ` David Schwartz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®