aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_host.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-30 23:58:05 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 14:13:14 -0400
commit0ffddfbb834557b8babc7f050b83d11dbcbb1008 (patch)
tree620afe52d29443b4ad10f805afe6b22d43349e5f /include/scsi/scsi_host.h
parentb6cdc7310338e204224f865918f774eb6db0b75d (diff)
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>
Diffstat (limited to 'include/scsi/scsi_host.h')
-rw-r--r--include/scsi/scsi_host.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index 2b6956e9853d..70e08e442bfc 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -6,6 +6,7 @@
6#include <linux/types.h> 6#include <linux/types.h>
7#include <linux/workqueue.h> 7#include <linux/workqueue.h>
8#include <linux/mutex.h> 8#include <linux/mutex.h>
9#include <linux/seq_file.h>
9#include <scsi/scsi.h> 10#include <scsi/scsi.h>
10 11
11struct request_queue; 12struct request_queue;
@@ -341,6 +342,8 @@ struct scsi_host_template {
341 * Status: OBSOLETE 342 * Status: OBSOLETE
342 */ 343 */
343 int (*proc_info)(struct Scsi_Host *, char *, char **, off_t, int, int); 344 int (*proc_info)(struct Scsi_Host *, char *, char **, off_t, int, int);
345 int (*show_info)(struct seq_file *, struct Scsi_Host *);
346 int (*write_info)(struct Scsi_Host *, char *, int);
344 347
345 /* 348 /*
346 * This is an optional routine that allows the transport to become 349 * This is an optional routine that allows the transport to become
@@ -375,7 +378,7 @@ struct scsi_host_template {
375 378
376 /* 379 /*
377 * Used to store the procfs directory if a driver implements the 380 * Used to store the procfs directory if a driver implements the
378 * proc_info method. 381 * proc_info or show_info method.
379 */ 382 */
380 struct proc_dir_entry *proc_dir; 383 struct proc_dir_entry *proc_dir;
381 384