kernels/linux-2.4.0/arch/mips/kernel/irq.c
/*
 * Request_interrupt and free_interrupt ``sort of'' handle interrupts of
 * non i8259 devices.  They will have to be replaced by architecture
 * specific variants.  For now we still use this as broken as it is because
 * it used to work ...
 */
Request_interrupt and free_interrupt ``sort of'' handle interrupts of
non i8259 devices.  They will have to be replaced by architecture
specific variants.  For now we still use this as broken as it is because
it used to work
Request_interrupt and free_interrupt ` ` sort of ' ' handle interrupts of non i8259 devices . They will have to be replaced by architecture specific variants . For now we still use this as broken as it is because it used to work
int request_irq(unsigned int irq, 
		void (*handler)(int, void *, struct pt_regs *),
		unsigned long irqflags, const char * devname, void *dev_id)
{
	int retval;
	struct irqaction * action;
	if (irq >= 32)
		return -EINVAL;
	if (!handler)
		return -EINVAL;
	action = (struct irqaction *)kmalloc(sizeof(struct irqaction), GFP_KERNEL);
	if (!action)
		return -ENOMEM;
	action->handler = handler;
	action->flags = irqflags;
	action->mask = 0;
	action->name = devname;
	action->next = NULL;
	action->dev_id = dev_id;
	retval = i8259_setup_irq(irq, action);
	if (retval)
		kfree(action);
	return retval;
}
int request_irq ( unsigned int irq , void ( * handler ) ( int , void * , struct pt_regs * ) , unsigned long irqflags , const char * devname , void * dev_id ) { int retval ; struct irqaction * action ; if ( irq >= 32 ) return - EINVAL ; if ( ! handler ) return - EINVAL ; action = ( struct irqaction * ) kmalloc ( sizeof ( struct irqaction ) , GFP_KERNEL ) ; if ( ! action ) return - ENOMEM ; action -> handler = handler ; action -> flags = irqflags ; action -> mask = 0 ; action -> name = devname ; action -> next = NULL ; action -> dev_id = dev_id ; retval = i8259_setup_irq ( irq , action ) ; if ( retval ) kfree ( action ) ; return retval ; }
Request_interrupt and free_interrupt ``sort of'' handle interrupts of
 non i8259 devices.
Request_interrupt and free_interrupt ` ` sort of ' ' handle interrupts of non i8259 devices .