简体   繁体   中英

kmalloc function and protection (READ,WRITE,EXEC)

I have a question regarding kmalloc function (found in the linux kernel) and protection:

  1. What is the default protection (write/read/exec) for an allocated memory created by kmalloc?
  2. How can I change the allocated region's protection? (from kernel mode)
  3. How can I find all kernel allocated memory and its protection?

Thanks.

Kmalloc只是REAL内存管理器kmem 缓存分配器的接口

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM