STRUCT SCSI_PROC_ENTRY(9)
πΈ struct scsi_proc_entry(9) β like, the whole kernel API manual moment π
okay so bestie, welcome to the <cyan>struct scsi_proc_entry</cyan> page β¨ this is a tiny little struct that lives in the Linux kernel docs (the Kernel API Manual, no big deal) and it's basically the situationship between a host template and a SCSI proc dir. iykyk π«Ά
π NAME π
struct scsi_proc_entry β the (host template, SCSI proc dir) association, fr fr π
β¨ SYNOPSIS β¨
here's the struct in all its glory, copy-pasted exactly because we do not mess with code π
struct scsi_proc_entry {
struct list_head entry;
const struct scsi_host_template *sht;
struct proc_dir_entry *proc_dir;
unsigned int present;
};
π¦ Members π¦
okay so member by member, let's get into it:
entryβ this is the entry inscsi_proc_list. it's the little list-joining baddie that keeps everything connected πshtβ the SCSI host template that's associated with the procfs directory. iconic pairing honestly π«proc_dirβ the procfs directory that's associated with the SCSI host template. they're literally a matched set πpresentβ anunsigned intholding the number of SCSI hosts instantiated forsht. the headcount, basically π
π SEE ALSO π
the kernel file is ./drivers/scsi/scsi_proc.c and it's giving main character energy. go check out these besties too:
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_write(9)proc_scsi_open(9)scsi_init_procfs(9)scsi_exit_procfs(9)
ngl this one's short and sweet β no scary caveats, no deprecated nonsense, just vibes and a struct π
okay that's the whole page, mwah π and for the cute sign-off: this lives under ./drivers/scsi, dated October 2026, and it's struct scsi_proc_entry(9) β 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