scsi_remove_single_device(9)
π scsi_remove_single_device(9) β Kernel API Manual π
Okay bestie, welcome to the kernel docs group chat π«Ά this one is literally about removing a device when a user asks for it, and we're gonna keep every deet intact.
π NAME π
scsi_remove_single_device β respond to a user request to remove a device. That's the assignment, no cap π
β¨ SYNOPSIS β¨
int scsi_remove_single_device (uint host , uint channel , uint id , uint lun );
πΈ ARGUMENTS πΈ
hostβ user-supplied decimal integer β¨channelβ user-supplied decimal integer πidβ user-supplied decimal integer π¦lunβ user-supplied decimal integer π«
All four are user-supplied decimal integers, and yes, that is the whole vibe check for these arguments π₯
π DESCRIPTION π
This function gets called by writing "scsi remove-single-device" to /proc/scsi/scsi β that's the trigger, bestie, straight from the original lore π
It does a scsi_device_lookup and scsi_remove_device. That's the move. No extra invented steps, fr fr π
The source says it does those two things βscsi_device_lookupandscsi_remove_deviceβ so we're not adding any extra main-character plot twists here π
π 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)proc_scsi_write(9)proc_scsi_open(9)scsi_init_procfs(9)scsi_exit_procfs(9)
Not me listing every single one because every single one matters π€π
mwah π β this iconic little page lives in ./drivers/scsi, is dated October 2026, and is serving scsi_remove_single_device(9) realness, periodt π«Άβ¨
π¦ 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