linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Quick question
@ 2004-02-24  3:14 Anand Eswaran
  2004-02-24  4:24 ` Dave Hansen
  0 siblings, 1 reply; 2+ messages in thread
From: Anand Eswaran @ 2004-02-24  3:14 UTC (permalink / raw)
  To: linux-mm

Hi :

   Are there any particular flags for a page that I can use to check if a
given page is used by the slab-allocator or not.

Thanks a lot,
Anand.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

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

* Re: Quick question
  2004-02-24  3:14 Quick question Anand Eswaran
@ 2004-02-24  4:24 ` Dave Hansen
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Hansen @ 2004-02-24  4:24 UTC (permalink / raw)
  To: Anand Eswaran; +Cc: linux-mm

On Mon, 2004-02-23 at 19:14, Anand Eswaran wrote:
>    Are there any particular flags for a page that I can use to check if a
> given page is used by the slab-allocator or not.

#define PageSlab(page)          test_bit(PG_slab, &(page)->flags)
#define SetPageSlab(page)       set_bit(PG_slab, &(page)->flags)
#define ClearPageSlab(page)     clear_bit(PG_slab, &(page)->flags)
#define TestClearPageSlab(page) test_and_clear_bit(PG_slab, &(page)->flags)
#define TestSetPageSlab(page)   test_and_set_bit(PG_slab, &(page)->flags)

-- dave

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

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

end of thread, other threads:[~2004-02-24  4:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-24  3:14 Quick question Anand Eswaran
2004-02-24  4:24 ` Dave Hansen

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