_scsih_scsi...nd_by_target(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 _scsih_scsi_lookup_find_by_target (9) 🌸

okay bestie, welcome to the Kernel API Manual πŸ’… β€” section 9, kernel-space, no userland shenanigans. This one's a tiny little lookup helper and honestly it's giving "small but iconic" ✨


πŸ’– NAME πŸ’–

_scsih_scsi_lookup_find_by_target β€” search for matching channel:id πŸŽ€


⭐ SYNOPSIS ⭐

u8 _scsih_scsi_lookup_find_by_target (struct MPT3SAS_ADAPTER *ioc , int
id , int channel );

like yes she's a whole two-line signature, she's got range 😭


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ioc β€” per adapter object 🫢 (the MPT3SAS adapter, the main character of this whole file ngl)
  • id β€” target id πŸ’«
  • channel β€” channel πŸŽ€

πŸ”’ CONTEXT πŸ”’

heads up bestie: this function will acquire ioc->scsi_lookup_lock. so like, she locks. that's the vibe. πŸ”


✨ DESCRIPTION ✨

This will search for a matching channel:id in the scsi_lookup array, returning 1 if found. πŸ‘‘

that's it. that's the whole function. she looks. she finds. she returns 1. periodt πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/scsi/mpt3sas/mpt3sas_scsih.c β€” plus literally the entire cast of this file, and babes, I mean the entire cast 🌈 take a seat, this is a long one:


and that's the whole group chat πŸ’– this came from ./drivers/scsi/mpt3sas, dated October 2026 β€” go drink some water and go read _scsih_scsi_lookup_find_by_lun(9) next, she's the sister function and she also ate 🫢✨

πŸ“¦ where this page comes from