文章目录 参考 实例代码 输出 注意事项 有没有粒度更小的机制 kernel 对应的code 用途 遇到的问题 CPU使用率相关 errno 22 参考 https://man7.org/linux/man-pages/man2/mprotect.2.html https://mzhan017.blog.csdn.net/article/details/120192676 实例代码 [root@10 test]# more mprotect.c #include <stdio.h> #include <stdlib.h>