]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: saner replacements for ->proc_info()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 31 Mar 2013 03:58:05 +0000 (23:58 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Apr 2013 18:13:14 +0000 (14:13 -0400)
commit5e13b09e8439ca5b12d29a2624d08a07b4ea7ca8
tree620afe52d29443b4ad10f805afe6b22d43349e5f
parentc120129930e720b4e97e567929a8578d3d430333
scsi: saner replacements for ->proc_info()

It's still an obsolete interface; don't introduce those in new drivers.
However, it's saner than the ->proc_info() and commits after this one
will convert the existing ->proc_info() users to it.

The read side is ->show_info(seq_file *, struct Scsi_Host *); use
seq_... for generating contents.

The write side is ->write_info(struct Scsi_Host *, char *, int).

Again, this is driven by procfs needs; we are going to kill ->write_proc()
and ->read_proc() and this is the main obstacle to burying that piece of
shit.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/scsi/scsi_proc.c
include/scsi/scsi_host.h