当前位置: 动力学知识库 > 问答 > 编程问答 >

driver - How to get pagetable of process for MMU of DMA in Linux

问题描述:

How to get pagetable of process for MMU of DMA in Linux?

(For DPDK app, custom DMA, custom MMU in FPGA, Zynq-7020/US+, Linux 4.6+, MMU of DMA is bounded to single process)

Task_struct of process can be obtained by kernel module which can access it by "current" as mentioned there.

I see struct mm_struct *mm, *active_mm; on line 1549

in struct task_struct (line 1475).

I think that page table pointer must be there but I can not see it.

Does anyone know where it is stored?

分享给朋友:
您可能感兴趣的文章:
随机阅读: