login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
10
Re: [RFC][PATCH] perf: sysfs type id
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Michael Ellerman
Subject:
Re: [RFC][PATCH] perf: sysfs type id
Date: Tuesday, November 9, 2010 - 8:37 pm
On Wed, 2010-11-10 at 02:59 +0100, Kay Sievers wrote:
quoted text
> On Wed, Nov 10, 2010 at 02:45, Michael Ellerman <michael@ellerman.id.au> wrote: > > On Wed, 2010-11-10 at 02:19 +0100, Kay Sievers wrote: > >> On Wed, Nov 10, 2010 at 02:10, Michael Ellerman <michael@ellerman.id.au> wrote: > >> > On Wed, 2010-11-10 at 01:57 +0100, Kay Sievers wrote: > >> >> Stay on the list please, with any possible reply. Thanks! > >> > > >> > You dropped the CC when you replied, or is my mailer being weird? > >> > >> You replied to me only: > >> From: Michael Ellerman <michael@ellerman.id.au> > >> To: Kay Sievers <kay.sievers@vrfy.org> > > > > Because you replied to me only, or at least that's what I see at my end. > > Sure, I don't add lists back when people reply to me only. You never > know why they do that, and if they have a reason for it. That's why I > added the the same mail: > "Stay on the list please, with any possible reply. Thanks!" > > >> Devices can never be on two subsystems at the same time. Not with > >> classes, not with buses, that was never, and probably will never be > >> possible. > > > > OK, I guess I'm getting my terminology wrong. My devices, which show up > > in /sys/class/foo are symlinks into /sys/devices/virtual/foo, so they > > _appear_ to be in two places. > > > > I also see entries for example in /sys/class/scsi_disk that link > > into /sys/devices/pci. > > Sure, all devices (devices are real directories) end up in the tree in > /sys/devices/. That's one tree, where all the devices from different > subsystems stack on top of others. > > > All devices have a symlink called 'subsystem' which points back to the > individual class the device belongs to. > > To find all device of a specific subsystem, you start at the subsystem > directory (class/bus) which collects them (only symlinks to the > device, not directories). > > That way you will find a blockdev, even when it's deep down in a chain > of devices: > pci:bridge/pci:dev/scsi:host/scsi:target/scsi:lun/block
OK, I think I get it. Thanks for taking the time to explain it to me :) cheers
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC][PATCH] perf: sysfs type id
, Peter Zijlstra
, (Tue Nov 9, 2:45 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Kay Sievers
, (Tue Nov 9, 3:11 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Greg KH
, (Tue Nov 9, 3:13 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Peter Zijlstra
, (Tue Nov 9, 3:22 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Kay Sievers
, (Tue Nov 9, 3:40 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Michael Ellerman
, (Tue Nov 9, 4:36 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Michael Ellerman
, (Tue Nov 9, 6:10 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Kay Sievers
, (Tue Nov 9, 6:19 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Michael Ellerman
, (Tue Nov 9, 6:45 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Kay Sievers
, (Tue Nov 9, 6:59 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Kay Sievers
, (Tue Nov 9, 7:11 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Michael Ellerman
, (Tue Nov 9, 8:37 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Peter Zijlstra
, (Wed Nov 10, 5:27 am)
Re: [RFC][PATCH] perf: sysfs type id
, Stephane Eranian
, (Wed Nov 10, 6:01 am)
sysfs: Add an 'events' class. (was: Re: [RFC][PATCH] perf: ...
, Ingo Molnar
, (Wed Nov 10, 6:36 am)
Re: [RFC][PATCH] perf: sysfs type id
, Peter Zijlstra
, (Wed Nov 10, 7:10 am)
Re: sysfs: Add an 'events' class. (was: Re: [RFC][PATCH] p ...
, Kay Sievers
, (Wed Nov 10, 7:14 am)
Re: [RFC][PATCH] perf: sysfs type id
, Peter Zijlstra
, (Wed Nov 10, 7:19 am)
Re: [RFC][PATCH] perf: sysfs type id
, Stephane Eranian
, (Wed Nov 10, 7:24 am)
Re: sysfs: Add an 'events' class. (was: Re: [RFC][PATCH] p ...
, Ingo Molnar
, (Wed Nov 10, 8:00 am)
Re: [RFC][PATCH] perf: sysfs type id
, Greg KH
, (Wed Nov 10, 10:31 am)
Re: [RFC][PATCH] perf: sysfs type id
, Stephane Eranian
, (Wed Nov 10, 1:08 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Peter Zijlstra
, (Wed Nov 10, 1:32 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Stephane Eranian
, (Wed Nov 10, 1:53 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Peter Zijlstra
, (Wed Nov 10, 2:05 pm)
Re: sysfs: Add an 'events' class. (was: Re: [RFC][PATCH] p ...
, Kay Sievers
, (Wed Nov 10, 11:39 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Corey Ashford
, (Tue Nov 16, 7:35 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Kyle Moffett
, (Wed Nov 17, 12:02 am)
Re: [RFC][PATCH] perf: sysfs type id
, Peter Zijlstra
, (Wed Nov 17, 4:25 am)
Re: [RFC][PATCH] perf: sysfs type id
, Peter Zijlstra
, (Wed Nov 17, 4:30 am)
Re: [RFC][PATCH] perf: sysfs type id
, Corey Ashford
, (Wed Nov 17, 12:47 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Peter Zijlstra
, (Wed Nov 17, 12:57 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Peter Zijlstra
, (Wed Nov 17, 1:01 pm)
Re: [RFC][PATCH] perf: sysfs type id
, Corey Ashford
, (Wed Nov 17, 2:39 pm)
Navigation
Mailing list archives
Recent posts