pub fn host_kernel_release() -> Option<String>Expand description
This host’s kernel release, or None where there is nothing to
read.
/proc/sys/kernel/osrelease is the file form of uname -r; the
reference calls os.uname(). A host without it is not WSL, which
is the answer either way.