I am working on developing a block driver in linux. The requirement is to allocate a huge chunk of memory(example more than 128KB, 2MB or 8MB or so...), divide the memory into small chunk and sent it through scatter-gather list. The scatter gather entries will be controlled by the user application.
I know there is a strict limitation of memory available in kernel. How can I achieve this at the kernel. Any help is highly appreciated.