1. NAME

proc_scsi_write - handle writes to /proc/scsi/scsi

2. SYNOPSIS

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

3. ARGUMENTS

file
    not used

buf
    buffer to write

length
    length of buf, at most PAGE_SIZE

ppos
    not used

4. DESCRIPTION

this provides a legacy mechanism to add or remove devices by Host, Channel, ID, and Lun. To use, « echo Aqscsi add-single-device 0 1 2 3Aq > /proc/scsi/scsi » or « echo Aqscsi remove-single-device 0 1 2 3Aq > /proc/scsi/scsi » with « 0 1 2 3 » replaced by the Host, Channel, Id, and Lun.

5. NOTE

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

6. AUTHORS

James Bottomley <>
    Author.

Rob Landley <>
    Author.

7. COPYRIGHT