All of lore.kernel.org
 help / color / mirror / Atom feed
From: Asai Thambi S P <asamymuthupa@micron.com>
To: Greg KH <greg@kroah.com>
Cc: Jens Axboe <axboe@kernel.dk>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Sam Bradshaw <sbradshaw@micron.com>
Subject: Re: [PATCH 2/5] mtip32xx: Add new sysfs entry 'status' and fix restart port
Date: Fri, 6 Apr 2012 17:28:22 -0700	[thread overview]
Message-ID: <4F7F8A26.2040707@micron.com> (raw)
In-Reply-To: <20120406233004.GA24121@kroah.com>

On 4/6/2012 4:30 PM, Greg KH wrote:

>>> > > What do the existing api files show for block devices?
>>> > > 
>> > 
>> > 
>> > I was looking into sysfs-driver-* files to create sysfs-driver-mtip32xx.
>> > These files have paths like /sys/bus/pci/*, /sys/devices/*,
>> > /sys/class/bluetooth/*, etc.
>> > 
>> > There are sysfs-block-dm and sysfs-block-zram files with
>> > /sys/block/dm-<num>/dm/* and /sys/block/zram<id>/*. If I have to follow
>> > these, then the file would be sysfs-driver-rssd with /sys/block/<disk>/*.
>> > 
>> > Let me know.
> /sys/block/rs*/ would be the right place, right?  You know the tree
> better than I do as you have this hardware and can see where in sysfs
> the files really are :)

Yes, I started that way and found /sys/block/rssda is a sym link to
/sys/devices/pci0000\:00/0000\:00\:01.0/0000\:01\:00.0/block/rssda/.
That is when I got the doubt, is it ok to use the sym link path or
should use the actual path.

I will go ahead with filename sysfs-block-rssd and path
/sys/block/rssd*/<entry>.

Thanks.

--
Regards,
Asai Thambi

      reply	other threads:[~2012-04-07  0:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-05 21:00 [PATCH 2/5] mtip32xx: Add new sysfs entry 'status' and fix restart port Asai Thambi S P
2012-04-06  1:10 ` Greg KH
2012-04-06 18:12   ` Asai Thambi S P
2012-04-06 21:34     ` Asai Thambi S P
2012-04-06 21:44       ` Greg KH
2012-04-06 22:03         ` Asai Thambi S P
2012-04-06 23:30           ` Greg KH
2012-04-07  0:28             ` Asai Thambi S P [this message]

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=4F7F8A26.2040707@micron.com \
    --to=asamymuthupa@micron.com \
    --cc=axboe@kernel.dk \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sbradshaw@micron.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.