Re: [PATCH 3/3] Makes lguest's irq handler typesafe

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rusty Russell <rusty@...>
Cc: <linux-kernel@...>, Andrew Morton <akpm@...>, Jeff Garzik <jgarzik@...>, Ash Willis <ashwillis@...>, <linux-pcmcia@...>, <virtualization@...>
Date: Friday, January 18, 2008 - 7:12 pm

Rusty Russell wrote:

Type safety is good but I doubt this would be worth the complexity.  It
has some benefits but there's much larger benefit in keeping things in
straight C.  People know that functions take fixed types and are also
familiar with the convention of passing void * for callback arguments.
IMHO, staying in line with those common knowledges easily trumps having
type checking on interrupt handler.

Also, how often do we see a bug where things go wrong because interrupt
handler is given the wrong type of argument?  Even when such bug
happens, I doubt it can escape the developer's workstation if he/she is
paying any attention to testing.

Thanks.

-- 
tejun
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/3] Improve type handling in interrupt handlers, Rusty Russell, (Fri Jan 18, 4:22 pm)
[PATCH 2/3] Make IRQ handlers typesafe., Rusty Russell, (Fri Jan 18, 4:25 pm)
Re: [PATCH 2/3] Make IRQ handlers typesafe., Jeff Garzik, (Fri Jan 18, 4:43 pm)
[PATCH 3/3] Makes lguest's irq handler typesafe, Rusty Russell, (Fri Jan 18, 4:27 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Tejun Heo, (Fri Jan 18, 7:12 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Rusty Russell, (Fri Jan 18, 9:28 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Tejun Heo, (Fri Jan 18, 9:40 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Tejun Heo, (Fri Jan 18, 9:44 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Rusty Russell, (Fri Jan 18, 11:59 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Tejun Heo, (Sat Jan 19, 12:08 am)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Rusty Russell, (Sat Jan 19, 7:27 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Jeff Garzik, (Fri Jan 18, 4:45 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Rusty Russell, (Fri Jan 18, 6:17 pm)