Skip to contentSkip to conversation

devfs vs udev, thoughts from a devfs user

DISCUSSION walt 2 participants 2 messages Feb 13, 2004 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

walt

author
#2 lore raw
Quoted 3 lines · Greg KH

...sysfs exports loads of info about every device in your system, not
only the major:minor info. It exports what device this major:minor is assigned to, the topology of the device...

For the benefit of us schlubs looking in from the outside, could you tell us what you mean by 'topology' ?

Thanks, from a gentoo/udev user!

#3 lore raw
Quoted 8 lines · walt
Quoted 3 lines · Greg KH

...sysfs exports loads of info about every device in your system, not
only the major:minor info. It exports what device this major:minor is assigned to, the topology of the device...

For the benefit of us schlubs looking in from the outside, could you tell us what you mean by 'topology' ?

Run 'tree' from /sys/devices/ to see the topology of how all of the different devices in your system are hooked together. Notice how the usb mouse is connected to a usb controller which is connected to a pci device, and so on.

udev can use that "chain" of devices to determine how to name your device.

thanks,

greg k-h