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

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.122 / U:5.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site