Function openat2::supports_open_how [−][src]
pub fn supports_open_how(how: &OpenHow) -> bool
Check whether the running kernel supports the given OpenHow
structure.
This will return false
if the running kernel either a) doesn’t support openat2()
or b)
doesn’t support the given how
.
This can be useful for probing for the kernel’s support of specific flags, such as
ResolveFlags::CACHED
(added in kernel 5.12). However, this function may be slow, so it’s
highly recommended to cache the result to avoid repeated syscalls.