aboutsummaryrefslogtreecommitdiff
path: root/modutils/modutils.h
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2009-10-25 04:35:22 +0100
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2009-10-25 04:35:22 +0100
commit77c066ea5cf4b1ee606a81e48388ff0b1d019134 (patch)
treeb51b001a013a4be3a2ad09fdc22cfdccf29bdbaf /modutils/modutils.h
parent30f3c1d5fdf8999491a01cb3fe8be8a40da52a75 (diff)
downloadbusybox-77c066ea5cf4b1ee606a81e48388ff0b1d019134.tar.gz
busybox-77c066ea5cf4b1ee606a81e48388ff0b1d019134.tar.bz2
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 <vda.linux@googlemail.com>
Diffstat (limited to 'modutils/modutils.h')
-rw-r--r--modutils/modutils.h6
1 files changed, 6 insertions, 0 deletions
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,