Skip to main content

walk_files

Function walk_files 

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

Walk open file descriptors for all processes.

For each process, follows task_struct.files → files_struct.fdt → fdtable to find the fd pointer array, then dereferences each non-NULL struct file * to read the dentry name and file position.