scsi_host_find_tag(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scsi_host_find_tag(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual era of your life β€” this is the page for scsi_host_find_tag, and no cap, it's short but she serves. Let's get into it πŸ¦‹


✨ NAME ✨

scsi_host_find_tag β€” find the tagged command by host 🌸

like, you give it a host, you give it a tag, and it goes and finds the tagged command. that's the whole vibe. iconic.


πŸ”₯ SYNOPSIS πŸ”₯

struct scsi_cmnd * scsi_host_find_tag (struct Scsi_Host *shost , int tag );

yes she returns a struct scsi_cmnd *. main character energy fr fr πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • shost β€” pointer to scsi_host 🫢 (literally, just a pointer to the scsi_host, that's it, that's the whole thing)
  • tag β€” tag 🏷️ (yes bestie, it's just called "tag" β€” the manpage said tag and so do we)

⚠️ NOTE ⚠️

for devices using multiple hardware queues, tag must have been generated by blk_mq_unique_tag. like, not optional, not a suggestion, this is the rule πŸ’€ so please don't be out here passing some random tag you made up in the group chat πŸ™ˆ


🧚 SEE ALSO 🧚

Kernel file ./include/scsi/scsi_tcq.h β€” go read it, it's giving source of truth ✨


and that's the page!! πŸ’œ this little gem lives in ./include/scsi, dated October 2026, and she's filed under scsi_host_find_tag(9) β€” mwah, slay, periodt, go find those tags bestie πŸŽ€β­

πŸ“¦ where this page comes from