mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-24 10:41:35 +01:00
usermem use virt_to_phys_user
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
Convert a virtual address to physical for a given process PID using /proc/PID/pagemap.
|
||||
|
||||
https://stackoverflow.com/questions/5748492/is-there-any-api-for-determining-the-physical-address-from-virtual-address-in-li/45128487#45128487
|
||||
|
||||
Test this out with usermem.c.
|
||||
*/
|
||||
|
||||
#include <stdio.h> /* printf */
|
||||
|
||||
Reference in New Issue
Block a user