Re: initxxxx() macros

Zachary Amsden (
Fri, 24 Jul 1998 16:41:21 -0400

-----Original Message-----
From: Alex Buell <>
To: <>
Cc: <>
Date: Friday, July 24, 1998 1:59 PM
Subject: initxxxx() macros

>Hi guys,
>Can these initxxxx() macros be used by user-space programs to free up
>initalisation code? This IMHO would be a valuable tool in keeping
>binaries' sizes to a minium - StarOffice for example.

Not very likely. With dynamic libs, this is already possible, but
it is kind of ugly - you put init code in a lib and call it from main.

This really shouldn't matter unless the init code is highly scattered
throughout the binary - if it is clustered together in the program,
then under memory load inactive pages (including init code) will be
swapped out. The only concern is filling up your swapspace completely,
but if you are doing that you already have other problems anyway.

The reason it is done in the kernel is that kernel memory is _very_
precious - it is unswappable as of yet.

Zachary Amsden

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at