fn allocate_new_slot(&mut self, irq_count: u32) -> Result<MMIODeviceInfo> {
        let irqs = self.irqs.get(irq_count)?;
        let slot = MMIODeviceInfo {
            addr: self.next_avail_mmio,
            len: MMIO_LEN,
            irqs,
        };
        self.next_avail_mmio += MMIO_LEN;
        Ok(slot)
    }
/// Allocates resources for a new device to be added.
Allocates resources for a new device to be added.
Allocates resources for a new device to be added .
fn allocate_new_slot(&mut self, irq_count: u32) -> Result<MMIODeviceInfo> {
        let irqs = self.irqs.get(irq_count)?;
        let slot = MMIODeviceInfo {
            addr: self.next_avail_mmio,
            len: MMIO_LEN,
            irqs,
        };
        self.next_avail_mmio += MMIO_LEN;
        Ok(slot)
    }
fn allocate_new_slot ( & mut self , irq_count : u32 ) -> Result < MMIODeviceInfo > { let irqs = self . irqs . get ( irq_count ) ? ; let slot = MMIODeviceInfo { addr : self . next_avail_mmio , len : MMIO_LEN , irqs , } ; self . next_avail_mmio += MMIO_LEN ; Ok ( slot ) }
Allocates resources for a new device to be added.
Allocates resources for a new device to be added .
&mut self
irq_count
u32
&mut self
irq_count
u32