Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755312Ab0LGK42 (ORCPT ); Tue, 7 Dec 2010 05:56:28 -0500 Received: from mail-px0-f174.google.com ([209.85.212.174]:36084 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751856Ab0LGK40 (ORCPT ); Tue, 7 Dec 2010 05:56:26 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=oFdcom8eKKEK/IYnn8LxYJPUGx1OkB4z7RM2SnvMrVpWTxil/fYksYn9rfRNl1q9wL +FxSBCNWXKMWMU9OEyWTDlD/Fg6noqnFhi55ykI7w4R8RUY9FZYf1dgJN6Gt7umkZVrQ JF/g8DiPP5FsxlEkcTIFNOKfBV6UYP6qyuMSY= Date: Tue, 7 Dec 2010 02:56:20 -0800 From: Dmitry Torokhov To: Kay Sievers Cc: Henrik Rydberg , Jiri Kosina , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Ping Cheng , Chris Bagwell Subject: Re: [RFC][PATCH] input: Introduce device information ioctl Message-ID: <20101207105620.GB23729@core.coreip.homeip.net> References: <1291706726-8835-1-git-send-email-rydberg@euromail.se> <20101207091653.GA22416@core.coreip.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1626 Lines: 36 On Tue, Dec 07, 2010 at 11:48:28AM +0100, Kay Sievers wrote: > On Tue, Dec 7, 2010 at 10:16, Dmitry Torokhov wrote: > > Hi Henrik, > > > > On Tue, Dec 07, 2010 at 08:25:26AM +0100, Henrik Rydberg wrote: > >> Today, userspace sets up an input device based on the data it emits. > >> This is not always enough; a tablet and a touchscreen may emit exactly > >> the same data, for instance, but the former should be set up with a > >> pointer whereas the latter does not need to. Recently, a new type of > >> touchpad has emerged where the buttons are under the pad, which changes > >> handling logic without changing the emitted data. This patch introduces > >> a new ioctl, EVIOCGDEVINFO, which allows userspace to extract information > >> about the device resulting in proper setup. > > > > If we agree that the new ioctl is suitable we'llalso need to wireit up > > through sysfs. Also, can we keep all definitions to INPUT_ namespace? > > Please don't add new ioctls which are not extensible. The ioctl should > carry the length or the version of the structure it asks for, so it > can be extended in the future. Size of ioctl data is encoded in ioctl, it can be extended easily. For examples take a look at how EVIOCGKEYCODE and EVIOCGSKEYCODE are handled in recent kernels. > Sysfs should be good enough for such > interface though. > -- Dmitry -- 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/