Re: [PATCH] add "bus" symlink to class/block devices

2005-02-17 Thread Greg KH
On Tue, Feb 15, 2005 at 11:04:06PM +0100, Kay Sievers wrote: > On Tue, Feb 15, 2005 at 09:53:44PM +0100, Kay Sievers wrote: > > Add a "bus" symlink to the class and block devices, just like the "driver" > > and "device" links. This may be a huge speed gain for e.g. udev to determine > > the bus

Re: [PATCH] add bus symlink to class/block devices

2005-02-17 Thread Greg KH
On Tue, Feb 15, 2005 at 11:04:06PM +0100, Kay Sievers wrote: On Tue, Feb 15, 2005 at 09:53:44PM +0100, Kay Sievers wrote: Add a bus symlink to the class and block devices, just like the driver and device links. This may be a huge speed gain for e.g. udev to determine the bus value of a

Re: [PATCH] add "bus" symlink to class/block devices

2005-02-15 Thread Dmitry Torokhov
On Tuesday 15 February 2005 18:44, Greg KH wrote: > On Tue, Feb 15, 2005 at 05:25:54PM -0500, Dmitry Torokhov wrote: > > On Tue, 15 Feb 2005 23:04:06 +0100, Kay Sievers <[EMAIL PROTECTED]> wrote: > > > > > > -static int class_device_dev_link(struct class_device * class_dev) > > > -{ > > > -

Re: [PATCH] add "bus" symlink to class/block devices

2005-02-15 Thread Greg KH
On Tue, Feb 15, 2005 at 05:25:54PM -0500, Dmitry Torokhov wrote: > On Tue, 15 Feb 2005 23:04:06 +0100, Kay Sievers <[EMAIL PROTECTED]> wrote: > > > > -static int class_device_dev_link(struct class_device * class_dev) > > -{ > > - if (class_dev->dev) > > - return

Re: [PATCH] add "bus" symlink to class/block devices

2005-02-15 Thread Dmitry Torokhov
On Tue, 15 Feb 2005 23:04:06 +0100, Kay Sievers <[EMAIL PROTECTED]> wrote: > > -static int class_device_dev_link(struct class_device * class_dev) > -{ > - if (class_dev->dev) > - return sysfs_create_link(_dev->kobj, > -_dev->dev->kobj,

Re: [PATCH] add "bus" symlink to class/block devices

2005-02-15 Thread Kay Sievers
On Tue, Feb 15, 2005 at 09:53:44PM +0100, Kay Sievers wrote: > Add a "bus" symlink to the class and block devices, just like the "driver" > and "device" links. This may be a huge speed gain for e.g. udev to determine > the bus value of a device, as we currently need to do a brute-force scan in >

[PATCH ] add "bus" symlink to class/block devices

2005-02-15 Thread Kay Sievers
Add a "bus" symlink to the class and block devices, just like the "driver" and "device" links. This may be a huge speed gain for e.g. udev to determine the bus value of a device, as we currently need to do a brute-force scan in /sys/bus/* to find this value. /sys |-- block | |-- fd0 | | |--

[PATCH ] add bus symlink to class/block devices

2005-02-15 Thread Kay Sievers
Add a bus symlink to the class and block devices, just like the driver and device links. This may be a huge speed gain for e.g. udev to determine the bus value of a device, as we currently need to do a brute-force scan in /sys/bus/* to find this value. /sys |-- block | |-- fd0 | | |-- bus -

Re: [PATCH] add bus symlink to class/block devices

2005-02-15 Thread Kay Sievers
On Tue, Feb 15, 2005 at 09:53:44PM +0100, Kay Sievers wrote: Add a bus symlink to the class and block devices, just like the driver and device links. This may be a huge speed gain for e.g. udev to determine the bus value of a device, as we currently need to do a brute-force scan in /sys/bus/*

Re: [PATCH] add bus symlink to class/block devices

2005-02-15 Thread Dmitry Torokhov
On Tue, 15 Feb 2005 23:04:06 +0100, Kay Sievers [EMAIL PROTECTED] wrote: -static int class_device_dev_link(struct class_device * class_dev) -{ - if (class_dev-dev) - return sysfs_create_link(class_dev-kobj, -class_dev-dev-kobj,

Re: [PATCH] add bus symlink to class/block devices

2005-02-15 Thread Greg KH
On Tue, Feb 15, 2005 at 05:25:54PM -0500, Dmitry Torokhov wrote: On Tue, 15 Feb 2005 23:04:06 +0100, Kay Sievers [EMAIL PROTECTED] wrote: -static int class_device_dev_link(struct class_device * class_dev) -{ - if (class_dev-dev) - return

Re: [PATCH] add bus symlink to class/block devices

2005-02-15 Thread Dmitry Torokhov
On Tuesday 15 February 2005 18:44, Greg KH wrote: On Tue, Feb 15, 2005 at 05:25:54PM -0500, Dmitry Torokhov wrote: On Tue, 15 Feb 2005 23:04:06 +0100, Kay Sievers [EMAIL PROTECTED] wrote: -static int class_device_dev_link(struct class_device * class_dev) -{ - if