linux-mips
[Top] [All Lists]

Re: input_event for 64-bit kernel and 32-bit userland.

To: linux-mips@linux-mips.org
Subject: Re: input_event for 64-bit kernel and 32-bit userland.
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Date: Wed, 2 Jun 2004 12:55:31 +0200
In-reply-to: <40BDA692.50606@dev.rtsoft.ru>
Mail-followup-to: linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <40BDA692.50606@dev.rtsoft.ru>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.6i
On Wed, 2004-06-02 14:06:10 +0400, Pavel Kiryukhin <savl@dev.rtsoft.ru>
wrote in message <40BDA692.50606@dev.rtsoft.ru>:

> Userspace application tries to read "input_event" (16 bytes) from 
> "/dev/input/event0" [ read(fd,&key_ev, sizeof(key_ev)) ],
> input core driver treats "input_event" as 24 bytes structure. It is due 
> to different size of  "timeval" (and finally  "long") in n64 kernel and 
> n32 userland.

You'd probably Cc: that to LKML, too. That's an issue for all systems
running 64bit kernel with 32bit userland (eg. Ultra-Sparc, PPC64, IA64,
x86_64, ...).

MfG, JBG

-- 
   Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
   ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>