pub fn update_range(
        &self,
        old_base: u64,
        old_len: u64,
        new_base: u64,
        new_len: u64,
    ) -> Result<()> {
        // Retrieve the device corresponding to the range
        let device = if let Some((_, _, dev)) = self.resolve(old_base) {
            dev.clone()
        } else {
            return Err(Error::MissingAddressRange);
        };

        // Remove the old address range
        self.remove(old_base, old_len)?;

        // Insert the new address range
        self.insert(device, new_base, new_len)
    }
/// Updates the address range for an existing device.
Updates the address range for an existing device.
Updates the address range for an existing device .
pub fn update_range(
        &self,
        old_base: u64,
        old_len: u64,
        new_base: u64,
        new_len: u64,
    ) -> Result<()> {
        // Retrieve the device corresponding to the range
        let device = if let Some((_, _, dev)) = self.resolve(old_base) {
            dev.clone()
        } else {
            return Err(Error::MissingAddressRange);
        };
        // Remove the old address range
        self.remove(old_base, old_len)?;
        // Insert the new address range
        self.insert(device, new_base, new_len)
    }
pub fn update_range ( & self , old_base : u64 , old_len : u64 , new_base : u64 , new_len : u64 , ) -> Result < ( ) > { // Retrieve the device corresponding to the range let device = if let Some ( ( _ , _ , dev ) ) = self . resolve ( old_base ) { dev . clone ( ) } else { return Err ( Error :: MissingAddressRange ) ; } ; // Remove the old address range self . remove ( old_base , old_len ) ? ; // Insert the new address range self . insert ( device , new_base , new_len ) }
Updates the address range for an existing device.
Updates the address range for an existing device .
&self
old_base
u64
old_len
u64
new_base
u64
new_len
u64
&self
old_base
u64
old_len
u64
new_base
u64
new_len
u64