I want to create a big buffer in kernel with continuous address space using struct page
.
The idea is to use alloc_page
to create nr_pages
* pages (I must strongly NOT use alloc_pages(...,order)
which returns one struct page *page
) and then somehow combine these nr_pages * PAGE_SIZE
space.
If I alloc_page
I can then addr = page_address(page)
so that I can memcpy to/from this 4k space. But what about more space?
Any ideas will be helpful