We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 712da72 commit 587490dCopy full SHA for 587490d
lib/posix/options/mlock.c
@@ -9,16 +9,22 @@
9
#include <zephyr/kernel.h>
10
#include <zephyr/posix/sys/mman.h>
11
12
+#include <zephyr/kernel/mm/demand_paging.h>
13
+
14
int mlock(const void *addr, size_t len)
15
{
- k_mem_pin(addr, len);
16
+ void *const _addr = (void *)addr;
17
18
+ k_mem_pin(_addr, len);
19
20
return 0;
21
}
22
23
int munlock(const void *addr, size_t len)
24
- k_mem_unpin(addr, len);
25
26
27
+ k_mem_unpin(_addr, len);
28
29
30
0 commit comments