From: Krishna Gudipati <gudipati@usc.edu>
To: linux-scsi@vger.kernel.org
Cc: James.Bottomley@HansenPartnership.com
Subject: Creating a subdirectory under fc_host statistics using fc_function_template
Date: Wed, 10 Dec 2008 11:20:42 -0800 [thread overview]
Message-ID: <de05a4d942f7.493fa60a@usc.edu> (raw)
Hello Everyone,
I have a small question on how to create a sub-directory to store my driver specific data under fc_host statistics.
Currently i am using the fc_function_template's .get_fc_host_stats to export all my fc_host statistics.
But now i need a way to create a directory under the /sys/class/fc_host/statistics
lets say /sys/class/fc_host/statistics/hba/ns_stats to store all the specific information regarding name_server or
this type of information for different stats we want to collect. Basically we are thinking of having a hierarchy
under the fc_host/statistics folder so that we can display our driver specific information in a much cleaner fashion.
I researched looking at the current "struct fc_function_template" under scsi_transport_fc.c but did not find a way where i can specify
that i need to create a folder under this statistics folder. I am not aware as of now if this feature of creating a hierarchy of directories for fc_host stats is in development.
But we think that having our driver specific information under a subdirectory would make things look nicer.
Can any of you linux guru's help me understand if this feature is currently in development?
or
is there any good way to tweak in and create a new subdirectory under the fc_host stats using the current fc_function_template?
If this feature is not currently present or in dev can we add some code to the scsi_transport_fc.c to support this feature?
Because we have a lot of driver specific information and we don't want to dump everything under the stats which can make things look a little messy. So we are planning to have a hierarchy so that we can sort out these properly.
Any help in this regard is really appreciated.
thanks in advance,
with regards,
CHAITANYA GUDIPATI
MS CS(COMPUTER NETWORKS)
UNIVERSITY OF SOUTHERN CALIFORNIA
next reply other threads:[~2008-12-10 19:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-10 19:20 Krishna Gudipati [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-12-10 19:39 Creating a subdirectory under fc_host statistics using fc_function_template Krishna Gudipati
2008-12-18 17:22 ` James Smart
2009-01-04 17:17 ` Mike Christie
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=de05a4d942f7.493fa60a@usc.edu \
--to=gudipati@usc.edu \
--cc=James.Bottomley@HansenPartnership.com \
--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;
as well as URLs for NNTP newsgroup(s).