Skip to main content

Module fs

Module fs 

Source
Expand description

Filesystem-oriented low-level helpers.

This module contains lightweight Linux and Android file probes and helpers that are useful near the OS boundary, including path existence checks and page-cache read-ahead hints.

Structs§

PathFingerprint

Functions§

mmap_madvise
Map a file range, advise the kernel that it will be needed, then unmap it.
path_exists
Probe whether a filesystem path is accessible and exists.
path_fingerprint
path_lstat_exists
Probe whether a path exists without following symbolic links.
read_to_string
Read a file into a string.
readahead
Advise the kernel to begin reading file data into the page cache.