list_find_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… list_find_cmd β€” or, as the kernel calls it, list_find_cmd(9)

okay so bestie, picture this: you've got a whole linked list of SCSI commands and you're standing there like πŸ‘€ "is this one in there or not??" That's literally the whole gig. list_find_cmd tests for the presence of a command in a linked list. That's it. That's the function. No cap. πŸŽ€


✨ SYNOPSIS ✨

bool list_find_cmd (struct list_head *haystack , struct scsi_cmnd
*needle );

she takes two pointers and hands you back a bool β€” yes-or-no energy only, we do not do "maybe" in this house πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • haystack β€” the list of commands 🌾 like, the whole pile you're digging through. This is your haystack, obvi.
  • needle β€” the command to search for πŸͺ‘ the one specific struct scsi_cmnd you're hunting for in said pile.
the naming?? iconic. haystack/needle?? whoever wrote this ate and left zero crumbs πŸ‘‘

🌸 SEE ALSO 🌸

bestie the cross-reference list is long and honestly it's giving "family reunion group chat" 😭 but here's the whole squad, everybody invited, no one left out:

like genuinely, go read them, they're all in the NCR5380 cinematic universe 🌈 (lowkey the whole NCR5380_* fam has main character energy fr fr)


mwah πŸ’– that's the page! brought to you from the fine folks over at ./drivers/scsi, dated October 2026, and yeah β€” this is list_find_cmd(9), signing off 🫢✨

πŸ“¦ where this page comes from