cmdline module options can be disabled on "big" modutils
Allow module options on command line to be disabled on "big" modutils. Config FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE is renamed to FEATURE_CMDLINE_MODULE_OPTIONS and no longer depends on !MODPROBE_SMALL (I'm not sure if disabling this is useful on "big" modutils, but at least the macro can serve as a marker and ensure both implementations of same feature have consistent behavior.) Signed-off-by: Kang-Che Sung <explorer09@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
264cb01540
commit
b1d6a2c624
6 changed files with 32 additions and 19 deletions
|
@ -120,6 +120,7 @@ char* FAST_FUNC filename2modname(const char *filename, char *modname)
|
|||
return modname;
|
||||
}
|
||||
|
||||
#if ENABLE_FEATURE_CMDLINE_MODULE_OPTIONS
|
||||
char* FAST_FUNC parse_cmdline_module_options(char **argv, int quote_spaces)
|
||||
{
|
||||
char *options;
|
||||
|
@ -155,6 +156,7 @@ char* FAST_FUNC parse_cmdline_module_options(char **argv, int quote_spaces)
|
|||
/* if (optlen != 0) options[optlen-1] = '\0'; */
|
||||
return options;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ENABLE_FEATURE_INSMOD_TRY_MMAP
|
||||
void* FAST_FUNC try_to_mmap_module(const char *filename, size_t *image_size_p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue