lkml.org 
[lkml]   [2004]   [May]   [12]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 12 May 2004 10:40:56 +0200
FromVojtech Pavlik <>
SubjectRe: Why pass pt_regs throughout the input system?
On Tue, May 11, 2004 at 11:04:50PM -0500, Dmitry Torokhov wrote:

> I have a question - why do we have to pass pt_regs structure throughout
> entire input system? As far as I can tell it is a snapshot of all registers
> that is done at the keyboard interrupt time and it is not used for anything
> but for displaying this data when requested by SysRq.
> 
> Would it be wrong to save it by the hardware driver at interrupt time into a
> structure accessible by keyboard.c? I do not think it matters if the data
> shown by SysRq comes from interrupt other than one that serves keyboard...
> 
> Although it is somewhat a domain violation I do not think it is worse than
> fattening interface to pass information that is not needed by most of its
> users.  

Ask David S. Miller for details - I think the problem was with
simultaneous invocation of multiple pt_regs printouts.

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:03    [from the cache]
©2003-2008