proc_scsi_write(9)
π
proc_scsi_write(9) β Kernel API Manual β¨
πΈ NAME
okay so proc_scsi_write β handle writes to /proc/scsi/scsi. that's the whole vibe, bestie. π
β¨ SYNOPSIS
ssize_t proc_scsi_write (struct file *file , const char __user *buf ,
size_t length , loff_t *ppos );
π ARGUMENTS
fileβ not used. literally just vibing there. πbufβ buffer to write. the actual data, bestie.lengthβ length ofbuf, at mostPAGE_SIZE.pposβ not used.
π¦ DESCRIPTION
this provides a legacy mechanism to add or remove devices by Host, Channel, ID, and Lun. To use it, do the iconic /proc echo thing:
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. no cap, that's the move. π
π«Ά NOTE
lowkey 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. so yeah, it's giving vintage. π
π SEE ALSO
- Kernel file
./drivers/scsi/scsi_proc.c struct scsi_proc_entry(9)scsi_template_proc_dir(9)scsi_proc_hostdir_add(9)scsi_proc_hostdir_rm(9)scsi_proc_host_add(9)scsi_proc_host_rm(9)proc_print_scsidevice(9)scsi_add_single_device(9)scsi_remove_single_device(9)proc_scsi_open(9)scsi_init_procfs(9)scsi_exit_procfs(9)
xoxo bestie π β this is proc_scsi_write(9) from ./drivers/scsi, dated October 2026. slay and read the source. β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms