Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932461AbVKQScs (ORCPT ); Thu, 17 Nov 2005 13:32:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932474AbVKQScs (ORCPT ); Thu, 17 Nov 2005 13:32:48 -0500 Received: from soundwarez.org ([217.160.171.123]:57275 "EHLO soundwarez.org") by vger.kernel.org with ESMTP id S932461AbVKQScr (ORCPT ); Thu, 17 Nov 2005 13:32:47 -0500 Date: Thu, 17 Nov 2005 19:32:36 +0100 From: Kay Sievers To: Greg KH Cc: Doug Thompson , linux-kernel@vger.kernel.org Subject: Re: [RFC] EDAC and the sysfs Message-ID: <20051117183236.GA24650@vrfy.org> References: <20051117070516.GB20760@kroah.com> <20051117172053.87207.qmail@web50112.mail.yahoo.com> <20051117171856.GB27534@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051117171856.GB27534@kroah.com> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1361 Lines: 32 On Thu, Nov 17, 2005 at 09:18:56AM -0800, Greg KH wrote: > On Thu, Nov 17, 2005 at 09:20:53AM -0800, Doug Thompson wrote: > > > But you can just probably use a udev rule to > > > initialize your things > > > properly, that's what all of the distros are now > > > using. > > > > Ok. That's another area for me to research. edac does > > not have any /dev/ entries, just the files and > > controls previous mentioned. > > > > So, from your comment then, udev has some mechanism to > > set controls in sysfs? > > udev gets called whenever you add a kobject to the system. You can then > do whatever you want in udev when this happens. As an example, on one > distro, when a bluetooth device is created by the kernel, a bluetooth > startup script is run by udev. We do things like this: ACTION=="add", SUBSYSTEM="scsi", SYSFS{type}=="1", RUN+="/bin/sh -c 'echo 900 > /sys/$DEVPATH/timeout'" There are only very few users now, that set values in sysfs. If that is a common need to change values with udev rules we may integrate that into udev itself, instead of calling a shell, but that works fine so far. Kay - 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/