On 7/19/05, Martin Jambor <jamborm@xxxxxxxxx> wrote: > > > What about alloc_pages, is there any similar constraint (I need about > half a megabyte)? > alloc_pages provides memory allocation in the form of pages which can allocate pages according to the order provided, so you can get around half MB or more easily ...... > And, BTW, is there any way of getting pointers to individual struct > pages corresponding to memory obtained with vmalloc? > ya, of course you can get struct pages from the memory allocated by vmalloc ..... look/use the macro defined in asm/page.h virt_to_page(kaddr) It actually gives you the pointer to page to which that virtual address points to ...... but u might have to consider the offsets in the page tooo for the first and last virtual address (that is the 12-bits of LSB) -- Fawad Lateef -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/