Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752722AbZK3L5N (ORCPT ); Mon, 30 Nov 2009 06:57:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752082AbZK3L5M (ORCPT ); Mon, 30 Nov 2009 06:57:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:31006 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751217AbZK3L5L (ORCPT ); Mon, 30 Nov 2009 06:57:11 -0500 Message-ID: <4B13B2FA.4050600@redhat.com> Date: Mon, 30 Nov 2009 09:56:42 -0200 From: Mauro Carvalho Chehab User-Agent: Thunderbird 2.0.0.22 (X11/20090609) MIME-Version: 1.0 To: Andy Walls CC: Ray Lee , Maxim Levitsky , Alan Cox , Jon Smirl , Krzysztof Halasa , Christoph Bartelmus , dmitry.torokhov@gmail.com, j@jannau.net, jarod@redhat.com, jarod@wilsonet.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, stefanr@s5r6.in-berlin.de, superm1@ubuntu.com Subject: Re: [RFC] What are the goals for the architecture of an in-kernel IR system? References: <9e4733910911280906if1191a1jd3d055e8b781e45c@mail.gmail.com> <9e4733910911280937k37551b38g90f4a60b73665853@mail.gmail.com> <1259469121.3125.28.camel@palomino.walls.org> <20091129124011.4d8a6080@lxorguk.ukuu.org.uk> <1259515703.3284.11.camel@maxim-laptop> <2c0942db0911290949p89ae64bjc3c7501c2de6930c@mail.gmail.com> <1259537732.5231.11.camel@palomino.walls.org> In-Reply-To: <1259537732.5231.11.camel@palomino.walls.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1750 Lines: 44 Andy Walls wrote: > On Sun, 2009-11-29 at 09:49 -0800, Ray Lee wrote: >> On Sun, Nov 29, 2009 at 9:28 AM, Maxim Levitsky wrote: >>> This has zero advantages besides good developer feeling that "My system >>> has one less daemon..." >> Surely it's clear that having an unnecessary daemon is introducing >> another point of failure? > > A failure in a userspace IR daemon is worst case loss of IR > functionality. > > A failure in kernel space can oops or panic the machine. If IR is the only interface between the user and the system (like in a TV or a Set Top Box), both will give you the same practical result: the system will be broken, if you got a crash at the IR driver. > Userspace is much more flexible. Why? The flexibility about the same on both kernelspace and userspace, except for the boot time. A kernelspace input device driver can start working since boot time. On the other hand, an userspace device driver will be available only after mounting the filesystems and starting the deamons (e. g. after running inittab). So, you cannot catch a key that would be affecting the boot (for example to ask the kernel to run a different runlevel or entering on some administrative mode). After the boot, and providing that the kernel has the proper API's, a pure userspace driver can behave just like a kernelspace driver and vice-versa. The only difference may be in terms of device transfer rate (not relevant for input devices) and latency. Cheers, Mauro. -- 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/