_scsi_send_scsi_io(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

_scsi_send_scsi_io β€” bestie, this one sends an internal SCSI_IO to the target 🎯 (yes, that's literally the whole job, and yes, it slays at it)

It lives in the Kernel API Manual, section 9, iykyk πŸ¦‹


✨ SYNOPSIS ✨

int _scsi_send_scsi_io (struct MPT3SAS_ADAPTER *ioc , struct
_scsi_io_transfer *transfer_packet , u8 tr_timeout , u8 tr_method );

okay so it returns an int, takes four things, and honestly that signature is giving "I know exactly what I'm doing" πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • ioc β€” the per adapter object 🫢 like, the whole adapTER, not a little piece of it
  • transfer_packet β€” the packet describing the transfer ✨ it's the lil envelope that says what's going down
  • tr_timeout β€” Target Reset Timeout ⏰ (a u8, so keep it smol)
  • tr_method β€” Target Reset Method 🌸 (also a u8, be normal about it)

πŸ¦‹ CONTEXT πŸ¦‹

user β€” yep, that's the context, no cap. Not interrupt, not atomic, not whatever else β€” user πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

Returns 0 for success, non-zero for failure. That's it, that's the whole vibe check 😭 no hidden lore, no secret side quests β€” just look at the return value and you'll know πŸ”₯

⚠️ okay but fr fr, "non-zero" is not a specific number. Don't be out here if (ret == 1)-ing like it's guaranteed β€” treat anything non-zero as the failure bucket πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/scsi/mpt3sas/mpt3sas_scsih.c β€” and now, girl, brace yourself, because this list is LONG. Not me about to list every single one 🫠 but I promised, so here we go, all of them, in order, no skips:

okay that was a lot but we made it, every single one accounted for, nothing skipped, we ate that list UP πŸ”₯πŸ‘‘


and that's the page bestie! it's all from ./drivers/scsi/mpt3sas β€” October 2026 edition, the manpage that says _scsi_send_scsi_io(9) up top and down at the bottom, mwah πŸ’‹ stay hydrated, read your return codes, and go send some internal SCSI_IO to a target πŸŽ―πŸ’–

πŸ“¦ where this page comes from