Dmitry Torokhov wrote:
On 10/6/06, Ingo Molnar <[email protected]> wrote:* Jeff Garzik <[email protected]> wrote: > >but pt_regs is alot less frequently used than irq - and where it's > >used they arent "drivers" but mostly arch level code like hw-timer > >handlers. > > Nonetheless the -vast majority- of drivers don't use the argument at > all, and the minority that do use it are not modern drivers. i'm all for changing that too :)What drivers use irq argument? I know i8042 does but only to detect whether interrupt routine was called because irq was raised or it was called manually and I can use dev_id for that...
Ancient ISA legacys, a few powermac drivers, and a lot of printk's. Your gut instinct is correct -- outside of printk, it is largely used to differentiate callers.
Jeff - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [PATCH 3/3] IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
- From: Andrew Morton <[email protected]>
- [PATCH 1/3] IRQ: Typedef the IRQ flow handler function type
- From: David Howells <[email protected]>
- Re: [PATCH 3/3] IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
- From: David Howells <[email protected]>
- Re: [PATCH 3/3] IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
- From: Jeff Garzik <[email protected]>
- Re: [PATCH 3/3] IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
- From: Alan Cox <[email protected]>
- Re: [PATCH 3/3] IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
- From: Jeff Garzik <[email protected]>
- Re: [PATCH 3/3] IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
- From: Ingo Molnar <[email protected]>
- Re: [PATCH 3/3] IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
- From: Jeff Garzik <[email protected]>
- Re: [PATCH 3/3] IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
- From: Ingo Molnar <[email protected]>
- Re: [PATCH 3/3] IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
- From: "Dmitry Torokhov" <[email protected]>
- Re: [PATCH 3/3] IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
- Prev by Date: Re: [linux-usb-devel] error to be returned while suspended
- Next by Date: Re: [PATCH 1/4] LOG2: Implement a general integer log2 facility in the kernel [try #4]
- Previous by thread: Re: [PATCH 3/3] IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
- Next by thread: [PATCH, RAW] IRQ: Maintain irq number globally rather than passing to IRQ handlers
- Index(es):