Linux (Ubuntu), C language: Virtual to Physical Address Translation

后端 未结 3 1231
忘了有多久
忘了有多久 2020-12-18 00:03

As the title suggests, I have a problem of obtaining the physical address from a virtual one.

Let me explain: Given a variable declaration in process space, how can

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-18 01:04

    Pass the virtual address to the kernel using systemcall/procfs and use vmalloc_to_pfn. Return the Physical address through procfs/registers.

提交回复
热议问题