pub fn kstrtobool_bytes(bytes: &[u8]) -> Result<bool>Expand description
Convert &[u8] to bool by deferring to kernel::str::kstrtobool.
Only considers at most the first two bytes of bytes.
pub fn kstrtobool_bytes(bytes: &[u8]) -> Result<bool>Convert &[u8] to bool by deferring to kernel::str::kstrtobool.
Only considers at most the first two bytes of bytes.