From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 23 Mar 2004 16:01:09 +0000 Subject: Re: mga_vid Message-Id: <20040323160109.GC30122@kroah.com> List-Id: References: <20040322221440.GA16562@harfang.homelinux.org> In-Reply-To: <20040322221440.GA16562@harfang.homelinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Mar 23, 2004 at 02:00:18PM +0100, gilles@harfang.homelinux.org wrote: > > > > but there is no '/dev/mga_vid'. > > > > With udev, what would be required to set it up? > > > > > > The kernel driver needs to be modified to use sysfs. > > Is it a lot of work? Not really, only 3-10 lines of code need to be added to the driver. > Is there a standard way to proceed [Like: you should find > and replace it with ] ? Is it explained somewhere? I've documented it a number of times in the linux-kernel archives. Basically you need to add a class_simple structure, and add devices to that structure when needed. See the drivers/base/class_simple.c code for information on the API, and any of the drivers that use that interface for examples of how to use it (like drivers/char/misc.c or drivers/char/mem.c). Hope this helps, greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel