STRUCT SCSI_PROC_ENTRY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 in scsi_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 β€” an unsigned int holding the number of SCSI hosts instantiated for sht. 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:


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