Skip to contentSkip to conversation

Is there no vmalloc() for PPC kernel?

DISCUSSION John Francis 2 participants 2 messages Oct 25, 2001 – Nov 1, 2001

lore
Share & tools
lore
#0 lore raw

I need to allocate more than page worth of memory in kernel. Some documentation that I looked at indicated I should be using vmalloc() , so I tried using it for PPC kernel and it couldn't find this symbol. Looked through the code ( 2.4.4 ) and I didn't see it.

What is the best way to allocate "fairly" large memory pool for use within the kernel by the driver?

John

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw

I've written a resident driver which calls vmalloc.

If you're writing a module which calls vmalloc you'll need to make sure EXPORT_SYMBOL(vmalloc) appears in

linux/arch/$(ARCH)/kernel/$(ARCH)_ksyms.c:

... otherwise insmod will fail.

Alex

Quoted 7 lines · John Francis

I need to allocate more than page worth of memory in kernel. Some documentation that I looked at indicated I should be using vmalloc() , so I tried using it for PPC kernel and it couldn't find this symbol. Looked through the code ( 2.4.4 ) and I didn't see it.

Quoted 5 lines

What is the best way to allocate "fairly" large memory pool for use within the kernel by the driver?

John

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/