1PROC_SCSI_WRITE(9)              SCSI mid layer              PROC_SCSI_WRITE(9)
2
3
4

NAME

6       proc_scsi_write - handle writes to /proc/scsi/scsi
7

SYNOPSIS

9       ssize_t proc_scsi_write(struct file * file, const char __user * buf,
10                               size_t length, loff_t * ppos);
11

ARGUMENTS

13       file
14           not used
15
16       buf
17           buffer to write
18
19       length
20           length of buf, at most PAGE_SIZE
21
22       ppos
23           not used
24

DESCRIPTION

26       this provides a legacy mechanism to add or remove devices by Host,
27       Channel, ID, and Lun. To use, “echo 'scsi add-single-device 0 1 2 3' >
28       /proc/scsi/scsi” or “echo 'scsi remove-single-device 0 1 2 3' >
29       /proc/scsi/scsi” with “0 1 2 3” replaced by the Host, Channel, Id, and
30       Lun.
31

NOTE

33       this seems to be aimed at parallel SCSI. Most modern busses (USB, SATA,
34       Firewire, Fibre Channel, etc) dynamically assign these values to
35       provide a unique identifier and nothing more.
36

AUTHORS

38       James Bottomley <James.Bottomley@hansenpartnership.com>
39           Author.
40
41       Rob Landley <rob@landley.net>
42           Author.
43
45Kernel Hackers Manual 3.10         June 2019                PROC_SCSI_WRITE(9)
Impressum