开发者

How do the PROT flags within mmap(), translate to register values?

I am interested in tracing how the mmap system call translates to register values on an ARM cpu. More interested in the path taken and where and when do these "PROT" attributes actually translate to a page attribute within the kernel. I did trace the system call till the "mmap_region" call under mm/mmap.c. From here, I fai开发者_StackOverflow社区l to see where the "flags/PROT" values translate to a register value on the CPU.

Thanks


MMU protection flags are set on arch/arm/mm/proc-xxx.S, on a function called xxx_set_pte_ext. Obviously, this is for processors with MMU.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜