diff options
Diffstat (limited to 'modutils/Config.in')
-rw-r--r-- | modutils/Config.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modutils/Config.in b/modutils/Config.in index d2a2e04d1..83c12b67f 100644 --- a/modutils/Config.in +++ b/modutils/Config.in | |||
@@ -121,6 +121,22 @@ config FEATURE_2_4_MODULES | |||
121 | This increases size considerably. Say N unless you plan | 121 | This increases size considerably. Say N unless you plan |
122 | to run ancient kernels. | 122 | to run ancient kernels. |
123 | 123 | ||
124 | config FEATURE_INSMOD_TRY_MMAP | ||
125 | bool "Try to load module from a mmap'ed area" | ||
126 | default n | ||
127 | depends on INSMOD || MODPROBE_SMALL | ||
128 | help | ||
129 | This option causes module loading code to try to mmap | ||
130 | module first. If it does not work (for example, | ||
131 | it does not work for compressed modules), module will be read | ||
132 | (and unpacked if needed) into a memory block allocated by malloc. | ||
133 | |||
134 | The only case when mmap works but malloc does not is when | ||
135 | you are trying to load a big module on a very memory-constrained | ||
136 | machine. Malloc will momentarily need 2x as much memory as mmap. | ||
137 | |||
138 | Choosing N saves about 250 bytes of code (on 32-bit x86). | ||
139 | |||
124 | config FEATURE_INSMOD_VERSION_CHECKING | 140 | config FEATURE_INSMOD_VERSION_CHECKING |
125 | bool "Enable module version checking" | 141 | bool "Enable module version checking" |
126 | default n | 142 | default n |