Thread (2 messages) 2 messages, 2 authors, 2004-02-24

Re: Quick question

From: Dave Hansen <hidden>
Date: 2004-02-24 04:24:53

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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help