mpt3sas_con...s_iounit_pg1(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– mpt3sas_con...s_iounit_pg1(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the page for mpt3sas_config_set_sas_iounit_pg1, and yes the title is lowkey truncated with ... but that's just how it's filed, we don't fight the filename, we respect the filename 🫢


✨ NAME ✨

mpt3sas_config_set_sas_iounit_pg1 β€” send sas iounit page 1 πŸ’…


🌸 SYNOPSIS 🌸

int mpt3sas_config_set_sas_iounit_pg1 (struct MPT3SAS_ADAPTER *ioc ,
Mpi2ConfigReply_t *mpi_reply , Mpi2SasIOUnitPage1_t *config_page , u16
sz );

that's the whole signature, no cap, type it exactly like that πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • ioc β€” the per adapter object 🧚 this is your adapter's whole personality, basically.
  • mpi_reply β€” the reply mf payload that gets returned from firmware πŸ“¨ like firmware slid into your DMs with an answer.
  • config_page β€” the contents of the config page. this is the actual stuff, the payload, the main character πŸ‘‘
  • sz β€” the size of the buffer you passed in config_page. yes you gotta tell it how big your buffer is, it's not gonna guess πŸ™ˆ

πŸ’œ CONTEXT πŸ’œ

sleep. 😴 that's it, that's the context. it sleeps.


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the thing the calling function needs to do first: it should call config_get_number_hba_phys prior to this function, so that enough memory is allocated for config_page πŸ’– like, do the prep work first bestie, don't show up to the function with an undersized buffer, it's giving unprepared 😭


🌈 RETURN 🌈

  • 0 β€” success, slay, we ate ✨
  • non-zero β€” failure, we did not eat πŸ’€

⭐ SEE ALSO ⭐

the whole friend group, fr fr β€” Kernel file ./drivers/scsi/mpt3sas/mpt3sas_config.c and all of these icons:


that's the whole page bestie, go forth and set that sas iounit page 1 πŸ¦‹πŸ’–

ngl the vibe check is: prep with config_get_number_hba_phys first, or your config_page buffer is gonna have a bad time 😭

kisses, this came from ./drivers/scsi/mpt3sas and is dated October 2026 β€” filed under mpt3sas_con...s_iounit_pg1(9) πŸŽ€βœ¨

πŸ“¦ where this page comes from