Re: question about modules rewrite

Matthias Urlichs (smurf@work.smurf.noris.de)
5 Jan 1997 16:15:25 +0100


In linux.dev.kernel, article <CMM-RU.1.5.852093748.tdyas@xenophanes.rutgers.edu>,
Tom Dyas <tdyas@xenophanes.rutgers.edu> writes:
> 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.

You have to get a kernel address for the module (create_module). Then you
need to relocate the module, load the code into the kernel, and initialize
it (init_module).

If you want to use just one syscall then you need to have the relocating
code within the kernel. This is stupid, IMHO.

-- 
Progress is man's ability to complicate simplicity.
	-- Thor Heyerdahl.
-- 
Matthias Urlichs         \  noris network GmbH  /  Xlink-POP Nürnberg 
Schleiermacherstraße 12   \   Linux+Internet   /   EMail: urlichs@noris.de
90491 Nürnberg (Germany)   \    Consulting+Programming+Networking+etc'ing
   PGP: 1024/4F578875   1B 89 E2 1C 43 EA 80 44  15 D2 29 CF C6 C7 E0 DE
       Click <A HREF="http://info.noris.de/~smurf/finger">here</A>.    42