pub fn kernel_links(path: &Path) -> Option<Vec<(PathBuf, PathBuf)>>Expand description
The symbolic links outside /proc and /sys, each with its target, that lead
path into /proc or /sys, in the order a path lookup follows them; None
when path does not reach /proc or /sys, and no links when it is under one
of them already.
A path that reaches /proc or /sys describes whichever process looks at it:
read when kizz records or checks a step, it would describe kizz, not the
command, so the object it reaches is recorded like any other /proc or /sys
path. The links that lead there are ordinary files of the project or the
system, so they are not. The lookup resolves each component in turn, follows
at most 40 links, and stops at the first component under /proc or /sys,
never reading anything there. A path that cannot be resolved, such as a missing
one, is judged by its own form.