/// Tests whether a device supports a particular attribute.
///
/// See the documentation for `MSHV_HAS_DEVICE_ATTR`.
/// # Arguments
///
/// * `device_attr` - The device attribute to be tested. `addr` field is ignored.
Tests whether a device supports a particular attribute.
See the documentation for `MSHV_HAS_DEVICE_ATTR`.
Tests whether a device supports a particular attribute . See the documentation for ` MSHV_HAS_DEVICE_ATTR ` .
pub fn has_device_attr(&self, device_attr: &mshv_device_attr) -> Result<()> {
        // SAFETY: IOCTL. We're sure parameters are of the correct types and meet safety
        // requirements.
        let ret = unsafe { ioctl_with_ref(self, MSHV_HAS_DEVICE_ATTR(), device_attr) };
        if ret != 0 {
            return Err(errno::Error::last());
        }
        Ok(())
    }
pub fn has_device_attr ( & self , device_attr : & mshv_device_attr ) -> Result < ( ) > { // SAFETY: IOCTL. We're sure parameters are of the correct types and meet safety // requirements. let ret = unsafe { ioctl_with_ref ( self , MSHV_HAS_DEVICE_ATTR ( ) , device_attr ) } ; if ret != 0 { return Err ( errno :: Error :: last ( ) ) ; } Ok ( ( ) ) }
Tests whether a device supports a particular attribute.
Tests whether a device supports a particular attribute .
&self
device_attr
&mshv_device_attr