All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* forcing device to appear in subdir
@ 2004-01-03 18:42 Jon Smirl
  2004-01-04  8:52 ` Greg KH
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Jon Smirl @ 2004-01-03 18:42 UTC (permalink / raw
  To: linux-hotplug

DRI devices are supposed to appear in dri/card0, dri/card1, etc.

Right now I achieve this with a rule:
REPLACE, KERNEL="card*", NAME="dri/card%n"

Can I control this via simple_add_class_device() or should I leave it as a rule?
If it's a rule it needs to go into the default udev install.

==Jon Smirl
jonsmirl@yahoo.com

__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003


-------------------------------------------------------
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_id\x1278&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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: forcing device to appear in subdir
  2004-01-03 18:42 forcing device to appear in subdir Jon Smirl
@ 2004-01-04  8:52 ` Greg KH
  2004-01-04 16:44 ` Jon Smirl
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2004-01-04  8:52 UTC (permalink / raw
  To: linux-hotplug

On Sat, Jan 03, 2004 at 10:42:37AM -0800, Jon Smirl wrote:
> DRI devices are supposed to appear in dri/card0, dri/card1, etc.

Says the LSB standard?

> Right now I achieve this with a rule:
> REPLACE, KERNEL="card*", NAME="dri/card%n"
> 
> Can I control this via simple_add_class_device() or should I leave it as a rule?

Nothing you can do in the sysfs tree will create a subdirectory in udev.
Leave it as a rule.

> If it's a rule it needs to go into the default udev install.

Patches gladly accepted :)

thanks,

greg k-h


-------------------------------------------------------
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_id\x1278&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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: forcing device to appear in subdir
  2004-01-03 18:42 forcing device to appear in subdir Jon Smirl
  2004-01-04  8:52 ` Greg KH
@ 2004-01-04 16:44 ` Jon Smirl
  2004-01-05 18:38 ` Greg KH
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Jon Smirl @ 2004-01-04 16:44 UTC (permalink / raw
  To: linux-hotplug

--- Greg KH <greg@kroah.com> wrote:
> On Sat, Jan 03, 2004 at 10:42:37AM -0800, Jon Smirl wrote:
> > DRI devices are supposed to appear in dri/card0, dri/card1, etc.
> 
> Says the LSB standard?

What does LSB say on this? It's been dri/cardX ever since dri was created, long
before I started working on it. 

==Jon Smirl
jonsmirl@yahoo.com

__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003


-------------------------------------------------------
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_id\x1278&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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: forcing device to appear in subdir
  2004-01-03 18:42 forcing device to appear in subdir Jon Smirl
  2004-01-04  8:52 ` Greg KH
  2004-01-04 16:44 ` Jon Smirl
@ 2004-01-05 18:38 ` Greg KH
  2004-01-05 22:02 ` Jon Smirl
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2004-01-05 18:38 UTC (permalink / raw
  To: linux-hotplug

On Sun, Jan 04, 2004 at 08:44:24AM -0800, Jon Smirl wrote:
> --- Greg KH <greg@kroah.com> wrote:
> > On Sat, Jan 03, 2004 at 10:42:37AM -0800, Jon Smirl wrote:
> > > DRI devices are supposed to appear in dri/card0, dri/card1, etc.
> > 
> > Says the LSB standard?
> 
> What does LSB say on this? It's been dri/cardX ever since dri was created, long
> before I started working on it. 

LSB says to follow what LANANA says, and the LANANA documentation says:

226 char        Direct Rendering Infrastructure (DRI)
                  0 = /dev/dri/card0            First graphics card
                  1 = /dev/dri/card1            Second graphics card
                    ...

So yup, you should be in your own subdirectory.  Care to send me a patch
for udev.rules that adds this subdir for all dri devices?

thanks,

greg k-h


-------------------------------------------------------
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_id\x1278&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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: forcing device to appear in subdir
  2004-01-03 18:42 forcing device to appear in subdir Jon Smirl
                   ` (2 preceding siblings ...)
  2004-01-05 18:38 ` Greg KH
@ 2004-01-05 22:02 ` Jon Smirl
  2004-01-05 22:09 ` Greg KH
  2004-01-10  1:15 ` Greg KH
  5 siblings, 0 replies; 7+ messages in thread
From: Jon Smirl @ 2004-01-05 22:02 UTC (permalink / raw
  To: linux-hotplug

This is what I'm using to force the subdir, is this the best way? Should there
be a separate file for rules that are never to be changed?

--- rr  2004-01-05 16:59:39.368395445 -0500
+++ udev.rules  2003-12-27 11:57:45.000000000 -0500
@@ -46,3 +46,5 @@
 #REPLACE, KERNEL="ttyS*", NAME="tts/%n"
 #REPLACE, KERNEL="tty*", NAME="vc/%n"
  
+REPLACE, KERNEL="card*", NAME="dri/card%n"
+

--- Greg KH <greg@kroah.com> wrote:
> On Sun, Jan 04, 2004 at 08:44:24AM -0800, Jon Smirl wrote:
> > --- Greg KH <greg@kroah.com> wrote:
> > > On Sat, Jan 03, 2004 at 10:42:37AM -0800, Jon Smirl wrote:
> > > > DRI devices are supposed to appear in dri/card0, dri/card1, etc.
> > > 
> > > Says the LSB standard?
> > 
> > What does LSB say on this? It's been dri/cardX ever since dri was created,
> long
> > before I started working on it. 
> 
> LSB says to follow what LANANA says, and the LANANA documentation says:
> 
> 226 char        Direct Rendering Infrastructure (DRI)
>                   0 = /dev/dri/card0            First graphics card
>                   1 = /dev/dri/card1            Second graphics card
>                     ...
> 
> So yup, you should be in your own subdirectory.  Care to send me a patch
> for udev.rules that adds this subdir for all dri devices?
> 
> thanks,
> 
> greg k-h


==Jon Smirl
jonsmirl@yahoo.com

__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003


-------------------------------------------------------
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_id\x1278&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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: forcing device to appear in subdir
  2004-01-03 18:42 forcing device to appear in subdir Jon Smirl
                   ` (3 preceding siblings ...)
  2004-01-05 22:02 ` Jon Smirl
@ 2004-01-05 22:09 ` Greg KH
  2004-01-10  1:15 ` Greg KH
  5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2004-01-05 22:09 UTC (permalink / raw
  To: linux-hotplug

On Mon, Jan 05, 2004 at 02:02:20PM -0800, Jon Smirl wrote:
> This is what I'm using to force the subdir, is this the best way? 

It's a good start.  Works for me :)

> Should there be a separate file for rules that are never to be
> changed?

All rules can be changed, that's why udev has a rules file :)

I'll add a comment in the file about keeping LSB names for dri devices
with that rule...

thanks,

greg k-h


-------------------------------------------------------
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_id\x1278&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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: forcing device to appear in subdir
  2004-01-03 18:42 forcing device to appear in subdir Jon Smirl
                   ` (4 preceding siblings ...)
  2004-01-05 22:09 ` Greg KH
@ 2004-01-10  1:15 ` Greg KH
  5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2004-01-10  1:15 UTC (permalink / raw
  To: linux-hotplug

On Mon, Jan 05, 2004 at 02:02:20PM -0800, Jon Smirl wrote:
> This is what I'm using to force the subdir, is this the best way? Should there
> be a separate file for rules that are never to be changed?

Thanks, I've made this change to the file.

I think it's about time we start working on a "default" rule file that
works for everyone in a LSB system.  And then provide an "example" file
to show some rules that might be useful to people.

thanks,

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-01-10  1:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-03 18:42 forcing device to appear in subdir Jon Smirl
2004-01-04  8:52 ` Greg KH
2004-01-04 16:44 ` Jon Smirl
2004-01-05 18:38 ` Greg KH
2004-01-05 22:02 ` Jon Smirl
2004-01-05 22:09 ` Greg KH
2004-01-10  1:15 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.