pub fn for_each_task_vma<P, F>(
reader: &ObjectReader<P>,
task_addr: u64,
callback: &mut F,
)Expand description
Walk every VMA for a single task and call callback for each entry.
Gracefully skips the task if mm == 0 (kernel thread or no address space)
or if mm_struct.mmap is unreadable. Individual unreadable VMAs terminate
the walk early (same behaviour as the walkers this replaces).
ยงArguments
readerโ kernelObjectReaderwith the kernel CR3.task_addrโ virtual address of thetask_struct.callbackโ called for each successfully read VMA entry.