linux kernel modules

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
guest

linux kernel modules

Post 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.
JoeKayzA

Re:linux kernel modules

Post 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
Post Reply