Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6334

how to find the right vm_area_struct from a mm_strucnt and a buffer

$
0
0

so in the mm_strucnt there is list of vm_areas ,

struct vm_area_struct *mmap_cache; 

and I want to find the one that contain my buffer for example function that would get sturc_mm and would return the vm_area that contain my buffer

get_vmArea(userbuffer,current->mm)

do there is any function that can do it for me, so I wouldn't have to look for all the vm_area till I find the one that contains rang that include my address


Viewing all articles
Browse latest Browse all 6334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>