devela::_dep::rustix::procfs

Function proc_self_fdinfo_fd

pub fn proc_self_fdinfo_fd<Fd>(fd: Fd) -> Result<OwnedFd, Errno> 
where Fd: AsFd,
Available on crate feature dep_rustix only.
Expand description

Returns a handle to a Linux /proc/self/fdinfo/<fd> file.

This ensures that /proc/self/fdinfo/<fd> is procfs, that nothing is mounted on top of it, and that it looks normal.

§References