diff options
Diffstat (limited to 'include/os.h')
-rw-r--r-- | include/os.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/os.h b/include/os.h index 5c797212c2..7116f87578 100644 --- a/include/os.h +++ b/include/os.h @@ -334,4 +334,16 @@ void os_localtime(struct rtc_time *rt); * os_abort() - Raise SIGABRT to exit sandbox (e.g. to debugger) */ void os_abort(void); + +/** + * os_mprotect_allow() - Remove write-protection on a region of memory + * + * The start and length will be page-aligned before use. + * + * @start: Region start + * @len: Region length in bytes + * @return 0 if OK, -1 on error from mprotect() + */ +int os_mprotect_allow(void *start, size_t len); + #endif |