[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(struct page *)->list
Question about the ->list field in linux/include/mm.h
typedef struct page
{
struct list_head list;
...
} mem_map_t;
I have a device driver that allocates pages with
alloc_pages(gfp_mask,0) call. I want to use
the ->list field and associated list_add() and list_del()
functions to keep track of my pages. The driver allocates
with GFP_KERNEL and GFP_HIGHUSER and will use the PAE
mode as well.
The question is if I unhook the page->list field after
page=alloc_page() and add page->list to my private linked list
will that cause a problem elsewhere in the kernel?
From my reading the code, the list field
is used only when pages are in the free page pool or
in the mmap code in mm/filemap.c. Appreciate any suggestions.
Bulent
--
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.eu.org/Linux-MM/