Skip to main content

raw_read_listing

Function raw_read_listing 

Source
pub fn raw_read_listing(path: &Path) -> Result<Vec<u8>>
Expand description

The whole contents of the procfs listing at path, read with raw syscalls and without allocating between reads, so that where the tool shares the guest’s process its own allocator maps nothing while the kernel walks the address space: the buffer is allocated before the first read, and a listing that fills it is read again, from the start, into one twice the size.