diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-25 04:35:22 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-25 04:35:22 +0100 |
commit | 77c066ea5cf4b1ee606a81e48388ff0b1d019134 (patch) | |
tree | b51b001a013a4be3a2ad09fdc22cfdccf29bdbaf /modutils/modutils.h | |
parent | 30f3c1d5fdf8999491a01cb3fe8be8a40da52a75 (diff) | |
download | busybox-w32-77c066ea5cf4b1ee606a81e48388ff0b1d019134.tar.gz busybox-w32-77c066ea5cf4b1ee606a81e48388ff0b1d019134.tar.bz2 busybox-w32-77c066ea5cf4b1ee606a81e48388ff0b1d019134.zip |
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.h | 6 |
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 { | |||
51 | #endif | 51 | #endif |
52 | }; | 52 | }; |
53 | 53 | ||
54 | #if ENABLE_FEATURE_INSMOD_TRY_MMAP | ||
55 | void* FAST_FUNC try_to_mmap_module(const char *filename, size_t *image_size_p); | ||
56 | #else | ||
57 | # define try_to_mmap_module(filename, image_size) NULL | ||
58 | #endif | ||
59 | |||
54 | /* Return: | 60 | /* Return: |
55 | * 0 on success, | 61 | * 0 on success, |
56 | * -errno on open/read error, | 62 | * -errno on open/read error, |