pub fn find_legacy_irq_handler(&self, irq_id: usize) -> ZxResult<Arc<SharedLegacyIrqHandler>> {
        let mut list = self.legacy_irq_list.lock();
        for i in list.iter() {
            if irq_id == i.irq_id {
                return Ok(i.clone());
            }
        }
        SharedLegacyIrqHandler::create(irq_id)
            .map(|x| {
                list.push(x.clone());
                x
            })
            .ok_or(ZxError::NO_RESOURCES)
    }
/// Find the legacy IRQ handler.
Find the legacy IRQ handler.
Find the legacy IRQ handler .
pub fn find_legacy_irq_handler(&self, irq_id: usize) -> ZxResult<Arc<SharedLegacyIrqHandler>> {
        let mut list = self.legacy_irq_list.lock();
        for i in list.iter() {
            if irq_id == i.irq_id {
                return Ok(i.clone());
            }
        }
        SharedLegacyIrqHandler::create(irq_id)
            .map(|x| {
                list.push(x.clone());
                x
            })
            .ok_or(ZxError::NO_RESOURCES)
    }
pub fn find_legacy_irq_handler ( & self , irq_id : usize ) -> ZxResult < Arc < SharedLegacyIrqHandler > > { let mut list = self . legacy_irq_list . lock ( ) ; for i in list . iter ( ) { if irq_id == i . irq_id { return Ok ( i . clone ( ) ) ; } } SharedLegacyIrqHandler :: create ( irq_id ) . map ( | x | { list . push ( x . clone ( ) ) ; x } ) . ok_or ( ZxError :: NO_RESOURCES ) }
Find the legacy IRQ handler.
Find the legacy IRQ handler .
&self
irq_id
usize
&self
irq_id
usize