pub fn remove(&self, base: u64, len: u64) -> Result<()> {
        if len == 0 {
            return Err(Error::ZeroSizedRange);
        }

        let bus_range = BusRange { base, len };

        if self.devices.write().unwrap().remove(&bus_range).is_none() {
            return Err(Error::MissingAddressRange);
        }

        Ok(())
    }
/// Removes the device at the given address space range.
Removes the device at the given address space range.
Removes the device at the given address space range .
pub fn remove(&self, base: u64, len: u64) -> Result<()> {
        if len == 0 {
            return Err(Error::ZeroSizedRange);
        }
        let bus_range = BusRange { base, len };
        if self.devices.write().unwrap().remove(&bus_range).is_none() {
            return Err(Error::MissingAddressRange);
        }
        Ok(())
    }
pub fn remove ( & self , base : u64 , len : u64 ) -> Result < ( ) > { if len == 0 { return Err ( Error :: ZeroSizedRange ) ; } let bus_range = BusRange { base , len } ; if self . devices . write ( ) . unwrap ( ) . remove ( & bus_range ) . is_none ( ) { return Err ( Error :: MissingAddressRange ) ; } Ok ( ( ) ) }
Removes the device at the given address space range.
Removes the device at the given address space range .
&self
base
u64
len
u64
&self
base
u64
len
u64