mpi3mr_cfg_get_sas_phy_pg0(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– mpi3mr_cfg_get_sas_phy_pg0 β€” read current SAS Phy page0 πŸ’–

okay bestie, welcome to the Kernel API Manual page for mpi3mr_cfg_get_sas_phy_pg0(9). yes that's a whole mouthful, but it's lowkey iconic β€” this is the little handler that goes and reads the current SAS Phy page0 for you. let's get into it ✨


πŸŽ€ SYNOPSIS πŸŽ€

int mpi3mr_cfg_get_sas_phy_pg0 (struct mpi3mr_ioc *mrioc , u16
*ioc_status , struct mpi3_sas_phy_page0 *phy_pg0 , u16 pg_sz , u32 form
, u32 form_spec );

🌸 ARGUMENTS 🌸

  • mrioc β€” the adapter instance reference, aka your main character. it's the controller you're talking to πŸ’…
  • ioc_status β€” pointer to return the ioc status in. this is where the controller's own status comes back to you, so pay attention
  • phy_pg0 β€” pointer to return SAS Phy page 0. this is the whole point of the function, bestie πŸ¦‹
  • pg_sz β€” size of the memory allocated to the page pointer. so like, how much room you actually gave it
  • form β€” the form to be used for addressing the page πŸŽ€
  • form_spec β€” form specific information, like the phy number. it's giving "details that depend on which form you picked" ✨

πŸ’œ DESCRIPTION πŸ’œ

so this is the handler for config page read for a specific SAS Phy page0. slay.

the ioc_status has the controller returned ioc_status β€” fr, that's where it lands.

⚠️ huge heads up bestie: this routine doesn't check ioc_status to decide whether the page read is a success or not. and it's the caller's responsibility. so like, the function is not gonna hold your hand and tell you if it worked β€” you gotta check that yourself, no cap 😭

🫢 RETURN 🫢

  • 0 on success
  • non-zero on failure

periodt. πŸ‘‘


🌈 SEE ALSO 🌈

Kernel file ./drivers/scsi/mpi3mr/mpi3mr_fw.c β€” and the whole friend group of related functions, all together, all accounted for, not one skipped πŸ’–:


and that's the whole page bb πŸ§šπŸ’œ this lil beauty lives over in ./drivers/scsi/mpi3mr, dated October 2026 β€” go read it, it ate πŸ’…βœ¨

πŸ“¦ where this page comes from