Re: [PATCH] proper replacements for ->proc_info

James Bottomley
2003-04-23T19:17:10Z

On Wed, 2003-04-23 at 15:21, Christoph Hellwig wrote:
> Two new host template methods:
>
> int (* show_info)(struct Scsi_Host *, struct seq_file *);
> int (* store_info)(struct Scsi_Host *, const char *, size_t);

Well, this does look good, but by extension we could use something like
this as a generic way to ship information to and from sysfs as well.

How about adding a "char *property" qualifier? If it's null you just
dump the whole lot (for /proc) but if it has a value, it's that specific
property from sysfs.

James