Page 1 of 1

linux kernel modules

Posted: Sun Jan 29, 2006 4:37 am
by guest
Hello, i have got a question about linux kernel module loading.
At what virtual address will the modules be loaded when i use insmod to load a kernel module.

Re:linux kernel modules

Posted: Sun Jan 29, 2006 6:32 am
by JoeKayzA
Not sure if this is the right place to ask, but anyway:

According to a paper I found on the net (actually, google found it for me), the kernel module loader calls 'vmalloc' to allocate a contiguous area of virtual memory, it doesn't say in which area, however.

So I guess it can be anywhere between 0xC0000000 and 0xFFFFFFFF (which is kernel land). There cannot be a fixed address anyway (if this was what you wanted to know - a fixed load address), since we are likely to have more than one module, and they need different base addresses obviously.

cheers Joe