* Re: devices with more than one node
2004-01-13 19:38 devices with more than one node Olaf Hering
@ 2004-01-13 19:46 ` Greg KH
2004-01-13 21:11 ` Olaf Hering
` (11 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: Greg KH @ 2004-01-13 19:46 UTC (permalink / raw)
To: linux-hotplug
On Tue, Jan 13, 2004 at 08:38:42PM +0100, Olaf Hering wrote:
>
> How is udev supposed to handle devices with more than one node?
udev will get a hotplug event for every node that is created in sysfs.
> scsi devices have a block and chardev,
More on scsi in a minute...
> inputdevices have also an event node attached.
Yes, and you get two different hotplug events, and udev just works,
right? (this is with the kernel patches I sent out last week...)
> Maybe I miss the obvious, but how do I match scsi as example? Not that
> sg provides a sg 'dev' entry today, but an external PROGRAM could not
> provide an relative symlink to sgN.
scsi needs to create a scsi_generic class (or some such name) and have
it contain the sg information. It should not be in the cdev directory
like it currently is (that's badly broken and should have never made it
in...) That sg class can contain the symlink back to the device that it
is associated with.
Does this help?
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] 18+ messages in thread* Re: devices with more than one node
2004-01-13 19:38 devices with more than one node Olaf Hering
2004-01-13 19:46 ` Greg KH
@ 2004-01-13 21:11 ` Olaf Hering
2004-01-13 21:20 ` Greg KH
` (10 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: Olaf Hering @ 2004-01-13 21:11 UTC (permalink / raw)
To: linux-hotplug
On Tue, Jan 13, Greg KH wrote:
> On Tue, Jan 13, 2004 at 08:38:42PM +0100, Olaf Hering wrote:
> >
> > How is udev supposed to handle devices with more than one node?
>
> udev will get a hotplug event for every node that is created in sysfs.
I will check if I can make use of that.
> > inputdevices have also an event node attached.
>
> Yes, and you get two different hotplug events, and udev just works,
> right? (this is with the kernel patches I sent out last week...)
I tried the -mm tree, and /proc/bus/input/devices differs indeed. Havent
tried to feed udev with the data.
> > Maybe I miss the obvious, but how do I match scsi as example? Not that
> > sg provides a sg 'dev' entry today, but an external PROGRAM could not
> > provide an relative symlink to sgN.
>
> scsi needs to create a scsi_generic class (or some such name) and have
> it contain the sg information. It should not be in the cdev directory
> like it currently is (that's badly broken and should have never made it
> in...) That sg class can contain the symlink back to the device that it
> is associated with.
>
> Does this help?
Yes. Do you have a patch for that? Or should the scsi people do it?
--
USB is for mice, FireWire is for men!
sUse lINUX ag, n√úRNBERG
-------------------------------------------------------
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] 18+ messages in thread* Re: devices with more than one node
2004-01-13 19:38 devices with more than one node Olaf Hering
2004-01-13 19:46 ` Greg KH
2004-01-13 21:11 ` Olaf Hering
@ 2004-01-13 21:20 ` Greg KH
2004-01-13 23:01 ` Patrick Mansfield
2004-01-14 17:29 ` Olaf Hering
` (9 subsequent siblings)
12 siblings, 1 reply; 18+ messages in thread
From: Greg KH @ 2004-01-13 21:20 UTC (permalink / raw)
To: linux-hotplug
On Tue, Jan 13, 2004 at 10:11:22PM +0100, Olaf Hering wrote:
> On Tue, Jan 13, Greg KH wrote:
> > On Tue, Jan 13, 2004 at 08:38:42PM +0100, Olaf Hering wrote:
> > > inputdevices have also an event node attached.
> >
> > Yes, and you get two different hotplug events, and udev just works,
> > right? (this is with the kernel patches I sent out last week...)
>
> I tried the -mm tree, and /proc/bus/input/devices differs indeed. Havent
> tried to feed udev with the data.
Look at /sys/class/input in the -mm kernel. I didn't do anything with
the /proc/bus/input stuff.
> > > Maybe I miss the obvious, but how do I match scsi as example? Not that
> > > sg provides a sg 'dev' entry today, but an external PROGRAM could not
> > > provide an relative symlink to sgN.
> >
> > scsi needs to create a scsi_generic class (or some such name) and have
> > it contain the sg information. It should not be in the cdev directory
> > like it currently is (that's badly broken and should have never made it
> > in...) That sg class can contain the symlink back to the device that it
> > is associated with.
> >
> > Does this help?
>
> Yes. Do you have a patch for that? Or should the scsi people do it?
The scsi people should do it :)
But if pushed hard enough, I guess I could do it...
I do need to make cdev disappear from the sysfs tree entirely anyway...
If only I had more time. Anyone else want to do this?
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] 18+ messages in thread* Re: devices with more than one node
2004-01-13 21:20 ` Greg KH
@ 2004-01-13 23:01 ` Patrick Mansfield
2004-01-13 23:18 ` Greg KH
0 siblings, 1 reply; 18+ messages in thread
From: Patrick Mansfield @ 2004-01-13 23:01 UTC (permalink / raw)
To: Greg KH; +Cc: Olaf Hering, linux-hotplug-devel, linux-scsi
On Tue, Jan 13, 2004 at 01:20:58PM -0800, Greg KH wrote:
> On Tue, Jan 13, 2004 at 10:11:22PM +0100, Olaf Hering wrote:
> > On Tue, Jan 13, Greg KH wrote:
> > > On Tue, Jan 13, 2004 at 08:38:42PM +0100, Olaf Hering wrote:
> > > > inputdevices have also an event node attached.
> > >
> > > Yes, and you get two different hotplug events, and udev just works,
> > > right? (this is with the kernel patches I sent out last week...)
> >
> > I tried the -mm tree, and /proc/bus/input/devices differs indeed. Havent
> > tried to feed udev with the data.
>
> Look at /sys/class/input in the -mm kernel. I didn't do anything with
> the /proc/bus/input stuff.
>
> > > > Maybe I miss the obvious, but how do I match scsi as example? Not that
> > > > sg provides a sg 'dev' entry today, but an external PROGRAM could not
> > > > provide an relative symlink to sgN.
> > >
> > > scsi needs to create a scsi_generic class (or some such name) and have
> > > it contain the sg information. It should not be in the cdev directory
> > > like it currently is (that's badly broken and should have never made it
> > > in...) That sg class can contain the symlink back to the device that it
> > > is associated with.
> > >
> > > Does this help?
> >
> > Yes. Do you have a patch for that? Or should the scsi people do it?
>
> The scsi people should do it :)
>
> But if pushed hard enough, I guess I could do it...
> I do need to make cdev disappear from the sysfs tree entirely anyway...
>
> If only I had more time. Anyone else want to do this?
>
> thanks,
>
> greg k-h
Don't forget to let the scsi people know ;-) cc-ing linux-scsi
st also needs changes.
Did anyone figure out how udev should handle the one tape device requiring
multiple minors (for open/close with/without rewind)? It really is a
single device requiring multiple dev entries.
For scsi_id support with udev, st needs to support SG_IO, AFAIUI it can
use similiar code as found in sd.c and sr.c.
-- Patrick Mansfield
-------------------------------------------------------
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] 18+ messages in thread
* Re: devices with more than one node
2004-01-13 23:01 ` Patrick Mansfield
@ 2004-01-13 23:18 ` Greg KH
2004-01-14 1:12 ` dougg
0 siblings, 1 reply; 18+ messages in thread
From: Greg KH @ 2004-01-13 23:18 UTC (permalink / raw)
To: Patrick Mansfield; +Cc: Olaf Hering, linux-hotplug-devel, linux-scsi
On Tue, Jan 13, 2004 at 03:01:47PM -0800, Patrick Mansfield wrote:
> Don't forget to let the scsi people know ;-) cc-ing linux-scsi
Ok, here goes:
linux-scsi, DO NOT USE THE cdev sysfs directory. It will be going away
as soon as I get around to writing the patch for it. Putting the sg
symlink in there is not the proper place.
For scsi generic you should create a scsi generic class (scsi_generic?)
and create the individual sg devices in that directory (feel free to use
the simple_class.c code that is currently in the -mm tree if you want,
it makes it much simpler)
> st also needs changes.
I agree.
> Did anyone figure out how udev should handle the one tape device requiring
> multiple minors (for open/close with/without rewind)? It really is a
> single device requiring multiple dev entries.
Create multiple class_device items for every tape device and have the
device symlink point to the same scsi device. The simple_class code
should make life a lot easier for you.
> For scsi_id support with udev, st needs to support SG_IO, AFAIUI it can
> use similiar code as found in sd.c and sr.c.
That's a scsi core issue, not a udev issue :)
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] 18+ messages in thread
* Re: devices with more than one node
2004-01-13 23:18 ` Greg KH
@ 2004-01-14 1:12 ` dougg
2004-01-14 1:26 ` Greg KH
0 siblings, 1 reply; 18+ messages in thread
From: dougg @ 2004-01-14 1:12 UTC (permalink / raw)
To: Greg KH; +Cc: Patrick Mansfield, Olaf Hering, linux-hotplug-devel, linux-scsi
Quoting Greg KH <greg@kroah.com>:
> On Tue, Jan 13, 2004 at 03:01:47PM -0800, Patrick Mansfield wrote:
> > Don't forget to let the scsi people know ;-) cc-ing linux-scsi
>
> Ok, here goes:
>
> linux-scsi, DO NOT USE THE cdev sysfs directory. It will be going away
> as soon as I get around to writing the patch for it. Putting the sg
> symlink in there is not the proper place.
Greg,
Is the register_chrdev_region() call which according to
J. Corbet's documentation allows support for more than 256
devices, going away? Or is it simply going to lose its
sysfs visibility (in the /sys/cdev/major directory)?
> For scsi generic you should create a scsi generic class (scsi_generic?)
> and create the individual sg devices in that directory (feel free to use
> the simple_class.c code that is currently in the -mm tree if you want,
> it makes it much simpler)
Does any device use the simple_class.c code yet?
> > st also needs changes.
and osst.
Kai changed the st naming scheme in /sys/cdev/major/st*
in a way that seems to allow for more than 8 variants
of each device.
> I agree.
>
> > Did anyone figure out how udev should handle the one tape device requiring
> > multiple minors (for open/close with/without rewind)? It really is a
> > single device requiring multiple dev entries.
>
> Create multiple class_device items for every tape device and have the
> device symlink point to the same scsi device. The simple_class code
> should make life a lot easier for you.
>
> > For scsi_id support with udev, st needs to support SG_IO, AFAIUI it can
> > use similiar code as found in sd.c and sr.c.
>
> That's a scsi core issue, not a udev issue :)
Well, before cdev gets ripped out, following two symlinks
(i.e. tape -> device -> generic) solves the long standing
ULD to sg (and vice versa) mapping problem.
It shouldn't be too hard putting (another) implementation
of the SG_IO in scsi/scsi_ioctl.c next to the
implementation of the SCSI_IOCTL_SEND_COMMAND ioctl.
Doug Gilbert
-------------------------------------------------------
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] 18+ messages in thread
* Re: devices with more than one node
2004-01-14 1:12 ` dougg
@ 2004-01-14 1:26 ` Greg KH
0 siblings, 0 replies; 18+ messages in thread
From: Greg KH @ 2004-01-14 1:26 UTC (permalink / raw)
To: dougg; +Cc: Patrick Mansfield, Olaf Hering, linux-hotplug-devel, linux-scsi
On Tue, Jan 13, 2004 at 08:12:56PM -0500, dougg@torque.net wrote:
> Quoting Greg KH <greg@kroah.com>:
>
> > On Tue, Jan 13, 2004 at 03:01:47PM -0800, Patrick Mansfield wrote:
> > > Don't forget to let the scsi people know ;-) cc-ing linux-scsi
> >
> > Ok, here goes:
> >
> > linux-scsi, DO NOT USE THE cdev sysfs directory. It will be going away
> > as soon as I get around to writing the patch for it. Putting the sg
> > symlink in there is not the proper place.
>
> Greg,
> Is the register_chrdev_region() call which according to
> J. Corbet's documentation allows support for more than 256
> devices, going away? Or is it simply going to lose its
> sysfs visibility (in the /sys/cdev/major directory)?
Just the sysfs visibility is going to go away.
> > For scsi generic you should create a scsi generic class (scsi_generic?)
> > and create the individual sg devices in that directory (feel free to use
> > the simple_class.c code that is currently in the -mm tree if you want,
> > it makes it much simpler)
>
> Does any device use the simple_class.c code yet?
I've posted patches that provide the following device support using the
simple_class.c code:
- tty devices
- sound devices
- frame buffer devices
- input devices
- memory devices
- misc devices
- virtual console devices
All of those patches are in the -mm tree (well the vc device patch is
currently commented out due to some wierd bugs...)
I'll probably be spinning another set of those patches tomorrow, as I've
fixed some race conditions in the simple_class.c code now.
> > > st also needs changes.
>
> and osst.
>
> Kai changed the st naming scheme in /sys/cdev/major/st*
> in a way that seems to allow for more than 8 variants
> of each device.
Great.
> > I agree.
> >
> > > Did anyone figure out how udev should handle the one tape device requiring
> > > multiple minors (for open/close with/without rewind)? It really is a
> > > single device requiring multiple dev entries.
> >
> > Create multiple class_device items for every tape device and have the
> > device symlink point to the same scsi device. The simple_class code
> > should make life a lot easier for you.
> >
> > > For scsi_id support with udev, st needs to support SG_IO, AFAIUI it can
> > > use similiar code as found in sd.c and sr.c.
> >
> > That's a scsi core issue, not a udev issue :)
>
> Well, before cdev gets ripped out, following two symlinks
> (i.e. tape -> device -> generic) solves the long standing
> ULD to sg (and vice versa) mapping problem.
But they do not provide a "dev" file, and the hotplug event, which is
what userspace tools like udev require. They also are the only types of
devices that use the cdev tree :)
If you make a class device, it will provide a symlink that you can use
to point to the device that sg is bound to.
Hope this helps,
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] 18+ messages in thread
* Re: devices with more than one node
2004-01-13 19:38 devices with more than one node Olaf Hering
` (2 preceding siblings ...)
2004-01-13 21:20 ` Greg KH
@ 2004-01-14 17:29 ` Olaf Hering
2004-01-14 17:39 ` Greg KH
` (8 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: Olaf Hering @ 2004-01-14 17:29 UTC (permalink / raw)
To: linux-hotplug
On Tue, Jan 13, Greg KH wrote:
> On Tue, Jan 13, 2004 at 10:11:22PM +0100, Olaf Hering wrote:
> > On Tue, Jan 13, Greg KH wrote:
> > > On Tue, Jan 13, 2004 at 08:38:42PM +0100, Olaf Hering wrote:
> > > > inputdevices have also an event node attached.
> > >
> > > Yes, and you get two different hotplug events, and udev just works,
> > > right? (this is with the kernel patches I sent out last week...)
> >
> > I tried the -mm tree, and /proc/bus/input/devices differs indeed. Havent
> > tried to feed udev with the data.
>
> Look at /sys/class/input in the -mm kernel. I didn't do anything with
> the /proc/bus/input stuff.
I did not load evdev.ko on the other box. Anyway, I havent tested it
yet, but what will happen with the /dev/input/mice multiplexer and one
of the 2 USB mice will be removed? I think /dev/input/mice will
disappear, have to verify that today.
--
USB is for mice, FireWire is for men!
sUse lINUX ag, n√úRNBERG
-------------------------------------------------------
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] 18+ messages in thread* Re: devices with more than one node
2004-01-13 19:38 devices with more than one node Olaf Hering
` (3 preceding siblings ...)
2004-01-14 17:29 ` Olaf Hering
@ 2004-01-14 17:39 ` Greg KH
2004-01-14 17:44 ` Greg KH
` (7 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: Greg KH @ 2004-01-14 17:39 UTC (permalink / raw)
To: linux-hotplug
On Wed, Jan 14, 2004 at 06:29:37PM +0100, Olaf Hering wrote:
> On Tue, Jan 13, Greg KH wrote:
>
> > On Tue, Jan 13, 2004 at 10:11:22PM +0100, Olaf Hering wrote:
> > > On Tue, Jan 13, Greg KH wrote:
> > > > On Tue, Jan 13, 2004 at 08:38:42PM +0100, Olaf Hering wrote:
> > > > > inputdevices have also an event node attached.
> > > >
> > > > Yes, and you get two different hotplug events, and udev just works,
> > > > right? (this is with the kernel patches I sent out last week...)
> > >
> > > I tried the -mm tree, and /proc/bus/input/devices differs indeed. Havent
> > > tried to feed udev with the data.
> >
> > Look at /sys/class/input in the -mm kernel. I didn't do anything with
> > the /proc/bus/input stuff.
>
> I did not load evdev.ko on the other box. Anyway, I havent tested it
> yet, but what will happen with the /dev/input/mice multiplexer and one
> of the 2 USB mice will be removed? I think /dev/input/mice will
> disappear, have to verify that today.
It doesn't do that for me, try testing the code before making such
claims :)
As an example, here's what my /sys/class/input/ looks like with a ps2
and a usb mouse plugged in, and the evdev module loaded:
$ tree /sys/class/input/
/sys/class/input/
|-- event0
| `-- dev
|-- event1
| `-- dev
|-- event2
| |-- dev
| |-- device -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2.2
| `-- driver -> ../../../bus/usb/drivers/usb
|-- mice
| `-- dev
|-- mouse0
| `-- dev
`-- mouse1
|-- dev
|-- device -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2.2
`-- driver -> ../../../bus/usb/drivers/usb
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] 18+ messages in thread* Re: devices with more than one node
2004-01-13 19:38 devices with more than one node Olaf Hering
` (4 preceding siblings ...)
2004-01-14 17:39 ` Greg KH
@ 2004-01-14 17:44 ` Greg KH
2004-01-14 19:15 ` Olaf Hering
` (6 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: Greg KH @ 2004-01-14 17:44 UTC (permalink / raw)
To: linux-hotplug
On Wed, Jan 14, 2004 at 09:39:31AM -0800, Greg KH wrote:
> `-- mouse1
> |-- dev
> |-- device -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2.2
> `-- driver -> ../../../bus/usb/drivers/usb
Hm, need to go fix that up, we should point to the interface bound, not
the main usb device...
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] 18+ messages in thread* Re: devices with more than one node
2004-01-13 19:38 devices with more than one node Olaf Hering
` (5 preceding siblings ...)
2004-01-14 17:44 ` Greg KH
@ 2004-01-14 19:15 ` Olaf Hering
2004-01-14 21:32 ` Greg KH
` (5 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: Olaf Hering @ 2004-01-14 19:15 UTC (permalink / raw)
To: linux-hotplug
On Wed, Jan 14, Greg KH wrote:
> On Wed, Jan 14, 2004 at 06:29:37PM +0100, Olaf Hering wrote:
> > On Tue, Jan 13, Greg KH wrote:
> >
> > > On Tue, Jan 13, 2004 at 10:11:22PM +0100, Olaf Hering wrote:
> > > > On Tue, Jan 13, Greg KH wrote:
> > > > > On Tue, Jan 13, 2004 at 08:38:42PM +0100, Olaf Hering wrote:
> > > > > > inputdevices have also an event node attached.
> > > > >
> > > > > Yes, and you get two different hotplug events, and udev just works,
> > > > > right? (this is with the kernel patches I sent out last week...)
> > > >
> > > > I tried the -mm tree, and /proc/bus/input/devices differs indeed. Havent
> > > > tried to feed udev with the data.
> > >
> > > Look at /sys/class/input in the -mm kernel. I didn't do anything with
> > > the /proc/bus/input stuff.
> >
> > I did not load evdev.ko on the other box. Anyway, I havent tested it
> > yet, but what will happen with the /dev/input/mice multiplexer and one
> > of the 2 USB mice will be removed? I think /dev/input/mice will
> > disappear, have to verify that today.
>
> It doesn't do that for me, try testing the code before making such
> claims :)
/dev/input/mice has no real device behind it, so it is safe. Can you add
that to udev.rules to keep compatibility?
# input devices
KERNEL="mice", NAME="input/%k"
KERNEL="keyboard", NAME="input/%k"
KERNEL="mouse*", NAME="input/%k"
KERNEL="event*", NAME="input/%k"
--
USB is for mice, FireWire is for men!
sUse lINUX ag, n√úRNBERG
-------------------------------------------------------
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] 18+ messages in thread* Re: devices with more than one node
2004-01-13 19:38 devices with more than one node Olaf Hering
` (6 preceding siblings ...)
2004-01-14 19:15 ` Olaf Hering
@ 2004-01-14 21:32 ` Greg KH
2004-01-14 21:35 ` Greg KH
` (4 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: Greg KH @ 2004-01-14 21:32 UTC (permalink / raw)
To: linux-hotplug
On Wed, Jan 14, 2004 at 08:15:42PM +0100, Olaf Hering wrote:
>
> /dev/input/mice has no real device behind it, so it is safe. Can you add
> that to udev.rules to keep compatibility?
>
> # input devices
> KERNEL="mice", NAME="input/%k"
> KERNEL="keyboard", NAME="input/%k"
> KERNEL="mouse*", NAME="input/%k"
> KERNEL="event*", NAME="input/%k"
Thanks for reminding me. I also added:
KERNEL="js*", NAME="input/%k"
To catch all of the joystick devices.
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] 18+ messages in thread* Re: devices with more than one node
2004-01-13 19:38 devices with more than one node Olaf Hering
` (7 preceding siblings ...)
2004-01-14 21:32 ` Greg KH
@ 2004-01-14 21:35 ` Greg KH
2004-01-15 8:01 ` Vojtech Pavlik
` (3 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: Greg KH @ 2004-01-14 21:35 UTC (permalink / raw)
To: linux-hotplug
On Wed, Jan 14, 2004 at 01:32:24PM -0800, Greg KH wrote:
> On Wed, Jan 14, 2004 at 08:15:42PM +0100, Olaf Hering wrote:
> >
> > /dev/input/mice has no real device behind it, so it is safe. Can you add
> > that to udev.rules to keep compatibility?
> >
> > # input devices
> > KERNEL="mice", NAME="input/%k"
> > KERNEL="keyboard", NAME="input/%k"
> > KERNEL="mouse*", NAME="input/%k"
> > KERNEL="event*", NAME="input/%k"
>
> Thanks for reminding me. I also added:
> KERNEL="js*", NAME="input/%k"
Oops, forgot the "ts*" input devices:
KERNEL="ts*", NAME="input/%k"
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] 18+ messages in thread* Re: devices with more than one node
2004-01-13 19:38 devices with more than one node Olaf Hering
` (8 preceding siblings ...)
2004-01-14 21:35 ` Greg KH
@ 2004-01-15 8:01 ` Vojtech Pavlik
2004-01-15 9:04 ` Olaf Hering
` (2 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: Vojtech Pavlik @ 2004-01-15 8:01 UTC (permalink / raw)
To: linux-hotplug
On Wed, Jan 14, 2004 at 01:32:24PM -0800, Greg KH wrote:
> > # input devices
> > KERNEL="mice", NAME="input/%k"
> > KERNEL="keyboard", NAME="input/%k"
What's the "keyboard" thing for?
> > KERNEL="mouse*", NAME="input/%k"
> > KERNEL="event*", NAME="input/%k"
>
> Thanks for reminding me. I also added:
> KERNEL="js*", NAME="input/%k"
--
Vojtech Pavlik
SuSE Labs, SuSE CR
-------------------------------------------------------
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] 18+ messages in thread* Re: devices with more than one node
2004-01-13 19:38 devices with more than one node Olaf Hering
` (9 preceding siblings ...)
2004-01-15 8:01 ` Vojtech Pavlik
@ 2004-01-15 9:04 ` Olaf Hering
2004-01-15 9:19 ` Vojtech Pavlik
2004-01-15 21:18 ` Greg KH
12 siblings, 0 replies; 18+ messages in thread
From: Olaf Hering @ 2004-01-15 9:04 UTC (permalink / raw)
To: linux-hotplug
On Thu, Jan 15, Vojtech Pavlik wrote:
> On Wed, Jan 14, 2004 at 01:32:24PM -0800, Greg KH wrote:
>
> > > # input devices
> > > KERNEL="mice", NAME="input/%k"
> > > KERNEL="keyboard", NAME="input/%k"
>
> What's the "keyboard" thing for?
you are right, that is part of the (almost) obsolete devs.rpm:
crw------- 1 root root 10, 150 Jan 12 12:14 /dev/input/keyboard
149 = /dev/input/mouse Linux/SGI Irix emulation mouse
150 = /dev/input/keyboard Linux/SGI Irix emulation keyboard
Documentation/devices.txt has alot more odd device nodes.
--
USB is for mice, FireWire is for men!
sUse lINUX ag, n√úRNBERG
-------------------------------------------------------
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] 18+ messages in thread* Re: devices with more than one node
2004-01-13 19:38 devices with more than one node Olaf Hering
` (10 preceding siblings ...)
2004-01-15 9:04 ` Olaf Hering
@ 2004-01-15 9:19 ` Vojtech Pavlik
2004-01-15 21:18 ` Greg KH
12 siblings, 0 replies; 18+ messages in thread
From: Vojtech Pavlik @ 2004-01-15 9:19 UTC (permalink / raw)
To: linux-hotplug
On Thu, Jan 15, 2004 at 10:04:40AM +0100, Olaf Hering wrote:
> On Thu, Jan 15, Vojtech Pavlik wrote:
>
> > On Wed, Jan 14, 2004 at 01:32:24PM -0800, Greg KH wrote:
> >
> > > > # input devices
> > > > KERNEL="mice", NAME="input/%k"
> > > > KERNEL="keyboard", NAME="input/%k"
> >
> > What's the "keyboard" thing for?
>
> you are right, that is part of the (almost) obsolete devs.rpm:
>
> crw------- 1 root root 10, 150 Jan 12 12:14 /dev/input/keyboard
>
> 149 = /dev/input/mouse Linux/SGI Irix emulation mouse
> 150 = /dev/input/keyboard Linux/SGI Irix emulation keyboard
>
> Documentation/devices.txt has alot more odd device nodes.
These entries indeed look rather obsolete for 2.6.
--
Vojtech Pavlik
SuSE Labs, SuSE CR
-------------------------------------------------------
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] 18+ messages in thread* Re: devices with more than one node
2004-01-13 19:38 devices with more than one node Olaf Hering
` (11 preceding siblings ...)
2004-01-15 9:19 ` Vojtech Pavlik
@ 2004-01-15 21:18 ` Greg KH
12 siblings, 0 replies; 18+ messages in thread
From: Greg KH @ 2004-01-15 21:18 UTC (permalink / raw)
To: linux-hotplug
On Thu, Jan 15, 2004 at 09:01:26AM +0100, Vojtech Pavlik wrote:
> On Wed, Jan 14, 2004 at 01:32:24PM -0800, Greg KH wrote:
>
> > > # input devices
> > > KERNEL="mice", NAME="input/%k"
> > > KERNEL="keyboard", NAME="input/%k"
>
> What's the "keyboard" thing for?
Oops, sorry. I'll go fix that...
greg k-h
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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] 18+ messages in thread