mpt3sas_bas...unit_control(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ mpt3sas_bas...unit_control(9) πŸ¦‹

okay so this page lives in the Kernel API Manual, section 9, and it is genuinely one of those "we're talking straight to the firmware now" moments. bestie, we are going in πŸ’…


✨ NAME ✨

mpt3sas_base_sas_iounit_control β€” send sas iounit control to FW

πŸ’– SYNOPSIS πŸ’–

int mpt3sas_base_sas_iounit_control (struct MPT3SAS_ADAPTER *ioc ,
Mpi2SasIoUnitControlReply_t *mpi_reply , Mpi2SasIoUnitControlRequest_t
*mpi_request );

πŸŽ€ ARGUMENTS πŸŽ€

  • ioc β€” per adapter object. one of these per adapter, it's basically the controller's whole identity 🫢
  • mpi_reply β€” the reply payload from FW. this is where firmware's answer lands
  • mpi_request β€” the request payload sent to FW. and this is the thing you're firing off at it ⭐

🌸 DESCRIPTION 🌸

so the SAS IO Unit Control Request message is your all-access pass to the low-level stuff πŸ’… it lets the host perform low-level operations β€” think resets on the PHYs of the IO Unit.

it also lets the host obtain the IOC assigned device handles for a device, as long as it's got some other identifying information about that device πŸ‘‘

and on top of all of that, it also lets the host remove the IOC resources associated with the device. three whole powers in one message, iconic.

⭐ RETURN ⭐

0 for success, non-zero for failure. that's the whole vibe check, no cap 🫢

πŸ”₯ SEE ALSO πŸ”₯

first up, the actual home of this thing:

  • Kernel file ./drivers/scsi/mpt3sas/mpt3sas_base.c

and now the extended fam, in exactly the order the page hands them to you, zero edits, zero skipping β€” yes it's long, yes we're doing all of them πŸ’€

🫢 tiny heads up: _base_wait_for_iocstate(9) genuinely shows up twice in that list β€” that's just how the page gives it to us, so we're keeping both, don't come for me πŸ’€ (and don't confuse her with _base_wait_on_iocstate(9), they are two different girlies ✨)

and that's the whole thing!! slay πŸŽ€ this page comes to you from ./drivers/scsi/mpt3sas, dated October 2026 β€” go forth and control that IO unit responsibly, bestie πŸ’œ

πŸ“¦ where this page comes from