Re: Suggestion for module .init.{text,data} sections

From: Ingo Oeser (
Date: Fri Apr 27 2001 - 03:35:19 EST

On Thu, Apr 26, 2001 at 09:49:05PM -0700, Adam J. Richter wrote:
> A while ago, on linux-kernel, we had a discussion about
> adding support for __initdata and __init in modules. Somebody
> (whose name escapes me) had implemented it by essentially adding
> a vmrealloc() facility in the kernel. I think I've thought of a
> simpler way, that would require almost no kernel changes.
[implementation details snipped]

While you are at this, you could make the .exit.{text,data}
sections swappable for modules (by allocating swappable pages fro
them?) and only mark them unswappable, while the module is

Rationale: A device needed for swaping will never call exit
stuff, because it is still in use. So I see no obvious race here.


Ingo Oeser

10.+11.03.2001 - 3. Chemnitzer LinuxTag <>
         <<<<<<<<<<<<     been there and had much fun   >>>>>>>>>>>>
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Apr 30 2001 - 21:00:17 EST