Skip to main content

for_each_task_vma

Function for_each_task_vma 

Source
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 โ€” kernel ObjectReader with the kernel CR3.
  • task_addr โ€” virtual address of the task_struct.
  • callback โ€” called for each successfully read VMA entry.