list_find_cmd(9)
π
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 specificstruct scsi_cmndyou'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:
- Kernel file
./drivers/scsi/NCR5380.cβ this is where the magic lives π initialize_SCp(9)NCR5380_poll_politely2(9)NCR5380_print(9)NCR5380_print_phase(9)NCR5380_info(9)NCR5380_init(9)NCR5380_maybe_reset_bus(9)NCR5380_exit(9)complete_cmd(9)NCR5380_queue_command(9)dequeue_next_cmd(9)NCR5380_main(9)NCR5380_intr(9)NCR5380_select(9)NCR5380_transfer_pio(9)do_reset(9)do_abort(9)NCR5380_abort(9)NCR5380_host_reset(9)
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
- 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