---
name: "proc_scsi_write"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/proc_scsi_write"
---

# proc\_scsi\_write(9)

handle writes to /proc/scsi/scsi

## NAME

proc\_scsi\_write - handle writes to /proc/scsi/scsi

## SYNOPSIS

**ssize\_t proc\_scsi\_write(struct file \*** *file***, const char \_\_user \*** *buf***, size\_t** *length***, loff\_t \*** *ppos***);**

## ARGUMENTS

*file*

not used

*buf*

buffer to write

*length*

length of buf, at most PAGE\_SIZE

*ppos*

not used

## DESCRIPTION

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

## 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.

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
