2004-09-22 06:23:13

by Shobhit Mathur

[permalink] [raw]
Subject: SCSI /proc query ...

Hello,

I intend to implement /proc interface for a SCSI HBA.
The proc_info() entry-point in Scsi_Host_Template
structure automatically takes care of creating a
proc-dir for each host [HBA] as in :
/proc/scsi/<mydriver>/<HBAnumber>.

I have been able to implement the above stage. Now, I
am interested in having separate proc-folders for each

SCSI target detected as in :

/proc/scsi/<mydriver>/<HBAnumber1>/<target1>
/proc/scsi/<mydriver>/<HBAnumber1>/<target2>
/proc/scsi/<mydriver>/<HBAnumber1>/<target3> ....

Under each of the target-folders, I would like to
print
relevant information specific to each target.

How do I go about achieving the above objective ? Some
clarifications/insights would be gratifying.

- Thank you

- Shobhit

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


2004-09-22 09:14:30

by Christoph Hellwig

[permalink] [raw]
Subject: Re: SCSI /proc query ...

On Tue, Sep 21, 2004 at 11:23:05PM -0700, Shobhit Mathur wrote:
> Hello,
>
> I intend to implement /proc interface for a SCSI HBA.

Don't do that. We're not going to take new drivers that implement ->proc_info
anymore.