public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Luben Tuikov <luben_tuikov@adaptec.com>
To: SCSI Mailing List <linux-scsi@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Greg KH <greg@kroah.com>
Subject: Question on "embedded" classes
Date: Mon, 27 Jun 2005 19:19:22 -0400	[thread overview]
Message-ID: <42C0897A.8010705@adaptec.com> (raw)

Hi,

I was wondering what the reason was for allowing
class and classdev to only be at level 3 and level
4 respectively of sysfs (/ is level 0)?

1) Some devices would not have any relevance
ouside the scope of the "parent" device.
2) "Hooking" them all at /sys/class/ level
would create quite a lot of symlinks (and with
cryptic names in order to reference the proper
"parent" device in the same directory).

E.g. Some devices, like SAS host adapters, have "devices
inside devices" and I'd like to represent this in
sysfs.

/sys/class/sas          (a class)
/sys/class/sas/ha0/     (a classdev)
/sys/class/sas/ha1/     (a classdev)

/sys/class/sas/ha0/device -> symlink to PCI device
/sys/class/sas/ha0/device_name    (text attribute)

/sys/class/sas/ha0/phys/     (a class)
/sys/class/sas/ha0/phys/0/   (a classdev)

etc.

Question: how does one "marry" the class to the classdev?

Or what is the alternative?

Thanks,
	Luben

             reply	other threads:[~2005-06-27 23:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-27 23:19 Luben Tuikov [this message]
2005-06-27 23:29 ` Question on "embedded" classes Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42C0897A.8010705@adaptec.com \
    --to=luben_tuikov@adaptec.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox