scsi_proc_hostdir_add(9)
π scsi_proc_hostdir_add(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes, the Kernel API Manual, the one and only. today we're doing scsi_proc_hostdir_add(9) and honestly? it's a little cutie.
πΈ NAME πΈ
scsi_proc_hostdir_add β makes a directory in /proc for a scsi host, that's the whole vibe π
β SYNOPSIS β
int scsi_proc_hostdir_add (const struct scsi_host_template *sht );
like, that's it. one argument. one int coming back at you. slay π
π¦ ARGUMENTS π¦
shtβ the owner of this directory, periodt. it's theconst struct scsi_host_template *and it literally owns the place π
β¨ DESCRIPTION β¨
so what does it do? it sets sht->proc_dir to the new directory. that's the tea, that's the whole function, fr fr π«Ά
π₯ SEE ALSO π₯
- Kernel file
./drivers/scsi/scsi_proc.c struct scsi_proc_entry(9)scsi_template_proc_dir(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_write(9)proc_scsi_open(9)scsi_init_procfs(9)scsi_exit_procfs(9)
iykyk, the whole scsi proc friend group is right there ππ
and that's the page!! mwah π this little icon lives in ./drivers/scsi and the version is October 2026, so go off and read the source bestie πππ
π¦ 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