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.
linux kernel modules
Re:linux kernel modules
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
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