_ctl_get_mpt...thru_adapter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ _ctl_get_mpt...thru_adapter(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual πŸ’– this is the entry for _ctl_get_mpt_mctp_passthru_adapter, and honestly? it's giving "one tiny helper function that's lowkey carrying the whole driver" energy. it lives in the mpt3sas world, it's literally one job, and we're gonna walk through it together. no cap. ✨


🌸 NAME 🌸

_ctl_get_mpt_mctp_passthru_adapter β€” she traverses the IOC list and returns the IOC sitting at the dev_index position that supports MCTP passthru. that's it. that's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

struct MPT3SAS_ADAPTER * _ctl_get_mpt_mctp_passthru_adapter (int dev_index );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev_index β€” bestie, this is the position in the mpt3sas_ioc_list that you want her to search. that's the whole input. she takes that index, goes looking, and here's what you get back:
    • pointer to the IOC on success 🫢
    • NULL if the device is not found β€” that's the error case, and yes it's just a sad little NULL, handle it 🌸
ngl, NULL is not a personality trait, please actually check for it. 😭

πŸ’… SEE ALSO πŸ’…

the whole friend group shows up for this one, iykyk. grab a snack, this list is long and every single name is here:


and that's the whole page, bestie β€” go forth and traverse that IOC list πŸ’…

🫢 sign-off time: this cutie comes from the source tree at ./drivers/scsi/mpt3sas, and the page is dated October 2026. slay. periodt. πŸŽ€
πŸ“¦ where this page comes from