From 77c066ea5cf4b1ee606a81e48388ff0b1d019134 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 25 Oct 2009 04:35:22 +0100 Subject: modutils: add FEATURE_INSMOD_TRY_MMAP option function old new delta try_to_mmap_module - 121 +121 bb_init_module_24 4514 4578 +64 bb_init_module 119 173 +54 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/0 up/down: 239/0) Total: 239 bytes Signed-off-by: Denys Vlasenko --- modutils/modutils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modutils/modutils.h') diff --git a/modutils/modutils.h b/modutils/modutils.h index 1cf4bba95..131a5087b 100644 --- a/modutils/modutils.h +++ b/modutils/modutils.h @@ -51,6 +51,12 @@ enum { #endif }; +#if ENABLE_FEATURE_INSMOD_TRY_MMAP +void* FAST_FUNC try_to_mmap_module(const char *filename, size_t *image_size_p); +#else +# define try_to_mmap_module(filename, image_size) NULL +#endif + /* Return: * 0 on success, * -errno on open/read error, -- cgit v1.2.3