From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Smirl Date: Sat, 27 Dec 2003 17:08:57 +0000 Subject: Re: dri and udev Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Adding: REPLACE, KERNEL="card*", NAME="dri/card%n" to udev rules makes it work. DRI sure made an unfortunate legacy choice of calling the driver cardX. How is this going to work when there are multiple devices with the same name? For example /dev/hda and /dev/i2o/hda? --- Kay Sievers wrote: > On Fri, Dec 26, 2003 at 11:24:25PM -0800, Jon Smirl wrote: > > I've been working on the dri drivers to make them appear in sysfs and udev. > I > > have it all working now using the simple_add_class_device() routine. The dri > > device is normally found in /dev/dri/card0, /dev/dri/card1, etc. How do I > make > > the device appear in a subdir under udev? > > You may try NAME="dev/dri/card0", it will create the subdirs for you. > Examples are in the file udev.rules.devfs. > > Kay ==Jon Smirl jonsmirl@yahoo.com __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&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