Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030478AbVKWXFP (ORCPT ); Wed, 23 Nov 2005 18:05:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030481AbVKWXFO (ORCPT ); Wed, 23 Nov 2005 18:05:14 -0500 Received: from gate.crashing.org ([63.228.1.57]:10468 "EHLO gate.crashing.org") by vger.kernel.org with ESMTP id S1030478AbVKWXFM (ORCPT ); Wed, 23 Nov 2005 18:05:12 -0500 Subject: Re: [git pull 09/14] Uinput: add UI_SET_SWBIT ioctl From: Benjamin Herrenschmidt To: Dmitry Torokhov Cc: Linus Torvalds , Vojtech Pavlik , Andrew Morton , Linux Kernel Mailing List In-Reply-To: <20051120064420.389911000.dtor_core@ameritech.net> References: <20051120063611.269343000.dtor_core@ameritech.net> <20051120064420.389911000.dtor_core@ameritech.net> Content-Type: text/plain Date: Thu, 24 Nov 2005 10:01:27 +1100 Message-Id: <1132786887.26560.341.camel@gaston> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 539 Lines: 23 Oh,and ... ARGH ! So you pass that nice structure struct input_event { struct timeval time; __u16 type; __u16 code; __s32 value; }; to userland via read() ... cool, a structure that is not compatible between 32 and 64 bits passed around via a read call. that will be fun to fix. Ben. - 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/