Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751343AbWEDVRG (ORCPT ); Thu, 4 May 2006 17:17:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751351AbWEDVRG (ORCPT ); Thu, 4 May 2006 17:17:06 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.31.123]:34503 "EHLO atrey.karlin.mff.cuni.cz") by vger.kernel.org with ESMTP id S1751343AbWEDVRE (ORCPT ); Thu, 4 May 2006 17:17:04 -0400 Date: Thu, 4 May 2006 23:17:03 +0200 From: Martin Mares To: Peter Jones Cc: Jon Smirl , Matthew Garrett , Bjorn Helgaas , linux-pci@atrey.karlin.mff.cuni.cz, Dave Airlie , Andrew Morton , greg@kroah.com, linux-kernel@vger.kernel.org, Arjan van de Ven Subject: Re: Add a "enable" sysfs attribute to the pci devices to allow userspace (Xorg) to enable devices without doing foul direct access Message-ID: References: <1146300385.3125.3.camel@laptopd505.fenrus.org> <200605041309.53910.bjorn.helgaas@hp.com> <445A51F1.9040500@linux.intel.com> <200605041326.36518.bjorn.helgaas@hp.com> <9e4733910605041340r65d47209h2da079d9cf8fceae@mail.gmail.com> <1146776736.27727.11.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1146776736.27727.11.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1032 Lines: 25 Hello! > > This is yet another way that user space can mess up the kernel. If VGA > > routing is changes under fbdev (my attribute notifies fbdev, the fbdev > > code for processing the notification did get checked in) then the > > console will screw up. > > And this change allows userland to avoid doing that. Could you explain how? I don't see how adding a "enable" attribute to sysfs can solve these problems. I agree with Arjan that the attribute could be useful for some special tools, but using it in X is likely to be utterly wrong. Have a nice fortnight -- Martin `MJ' Mares http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth A mathematician is a machine for converting coffee into theorems. - 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/