Re: question about modules rewrite

Richard Henderson (
Sat, 4 Jan 1997 14:42:55 -0600 (CST)

> Now that the kernel modules implementation has been rewritten for the
> better and the interface changed somewhat, is there any reason to have
> both sys_create_module() and sys_init_module()?

Yes. sys_create_module returns the address at which the module
should be relocated; sys_init_module copies the now-relocated
bits into kernel memory.

The only other option would be doing PIC bits as in ELF shared
libraries. Since there is no issue of sharing code between multiple
kernels, there is no need for that complication. ;-)