diff options
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, |