Skip to main content

walk_memfd_create

Function walk_memfd_create 

Source
pub fn walk_memfd_create<P: PhysicalMemoryProvider>(
    reader: &ObjectReader<P>,
) -> Result<Vec<MemfdInfo>>
Expand description

Walk the task list and collect information about open memfd_create file descriptors.

For each process, walks mm_struct.mmap (the VMA chain). For every VMA that is file-backed, the dentry name is read; if it starts with "memfd:" the mapping is recorded.

Gracefully returns Ok(vec![]) if any required kernel symbol is absent, so callers on unexpected kernel versions are not broken.