| Reference |
struct page *page; unsigned char *p; p = page_address(page);
Other APIs:
Allocate pages
struct page *page; page = alloc_pages(gfp, order);
Allocate one page
struct page *page, *head;
char *data="aljalf";
/*allocate a page */
page = alloc_page(gfp_mask);
if (page)
memcpy(page_address(page), data, strlen(data)+1 );
/*free a page*/
put_page(page );