lkml.org 
[lkml]   [1997]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: question about modules rewrite
Date
> 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. ;-)


r~

\
 
 \ /
  Last update: 2005-03-22 13:38    [from the cache]
©2003-2011 Jasper Spaans