proc_scsi_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 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 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


xoxo bestie πŸ’– β€” this is proc_scsi_write(9) from ./drivers/scsi, dated October 2026. slay and read the source. ✨

πŸ“¦ where this page comes from