<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/Documentation/ABI/testing/sysfs-class-devlink, branch linux-5.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-07-24T18:55:25Z</updated>
<entry>
<title>driver core: Change delimiter in devlink device's name to "--"</title>
<updated>2020-07-24T18:55:25Z</updated>
<author>
<name>Saravana Kannan</name>
</author>
<published>2020-07-24T18:05:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=90b109d50da09ddaa179732c01ccba7f759c125d'/>
<id>urn:sha1:90b109d50da09ddaa179732c01ccba7f759c125d</id>
<content type='text'>
The devlink device name is of the form "supplier:consumer". But ":" is
fairly common in device names and makes it visually hard to distinguish
supplier and consumer. So, replace it with "--" to make it easier.

Signed-off-by: Saravana Kannan &lt;saravanak@google.com&gt;
Link: https://lore.kernel.org/r/20200724180523.1393383-1-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>driver core: Expose device link details in sysfs</title>
<updated>2020-07-10T13:24:56Z</updated>
<author>
<name>Saravana Kannan</name>
</author>
<published>2020-05-21T19:17:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=287905e68dd29873bcb7986a8290cd1e4cfde600'/>
<id>urn:sha1:287905e68dd29873bcb7986a8290cd1e4cfde600</id>
<content type='text'>
It's helpful to be able to look at device link details from sysfs. So,
expose it in sysfs.

Say device-A is supplier of device-B. These are the additional files
this patch would create:

/sys/class/devlink/device-A:device-B/
	auto_remove_on
	consumer/ -&gt; .../device-B/
	runtime_pm
	status
	supplier/ -&gt; .../device-A/
	sync_state_only

/sys/devices/.../device-A/
	consumer:device-B/ -&gt; /sys/class/devlink/device-A:device-B/

/sys/devices/.../device-B/
	supplier:device-A/ -&gt; /sys/class/devlink/device-A:device-B/

That way:
To get a list of all the device link in the system:
ls /sys/class/devlink/

To get the consumer names and links of a device:
ls -d /sys/devices/.../device-X/consumer:*

To get the supplier names and links of a device:
ls -d /sys/devices/.../device-X/supplier:*

Signed-off-by: Saravana Kannan &lt;saravanak@google.com&gt;
Link: https://lore.kernel.org/r/20200521191800.136035-2-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
