[Top] [All Lists]

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

Subject: Re: input_event for 64-bit kernel and 32-bit userland.
From: Jan-Benedict Glaw <>
Date: Wed, 2 Jun 2004 12:55:31 +0200
In-reply-to: <>
Original-recipient: rfc822;
References: <>
User-agent: Mutt/1.5.6i
On Wed, 2004-06-02 14:06:10 +0400, Pavel Kiryukhin <>
wrote in message <>:

> 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, ...).


   Jan-Benedict Glaw    . +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>