mptsas_find_...hys_disk_num(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 mptsas_find_...hys_disk_num(9) 🌸

okay so bestie, you're in the Kernel API Manual and this page is literally all about mptsas_find_phyinfo_by_phys_disk_num β€” the manual name got cut off in the header (iykyk, it happens πŸ’…), but we're here now and we're gonna learn it together.


✨ NAME ✨

mptsas_find_phyinfo_by_phys_disk_num β€” find phyinfo for the specified @phys_disk_num

like, that's the whole vibe. you give it a physical disk number and it goes and finds you the phyinfo. no cap. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

struct mptsas_phyinfo * mptsas_find_phyinfo_by_phys_disk_num
(MPT_ADAPTER *ioc , u8 phys_disk_num , u8 channel , u8 id );

four args, one pointer back, slay. keep the spacing exactly like that, it's giving "generated by a script and we respect it" πŸ’–


πŸ‘‘ ARGUMENTS πŸ‘‘

okay these are the four besties you have to hand over when you call this function. let's do a lil vibe check on each one:

  • ioc β€” Pointer to MPT_ADAPTER structure. this is the main character of the whole file honestly, everything points back to it. πŸ”₯
  • phys_disk_num β€” (hot plug) physical disk number (for RAID support). yes the "(hot plug)" is part of the description, don't come for me, and yes it's specifically for RAID support. 🫢
  • channel β€” channel number. short, sweet, iconic. ⭐
  • id β€” Logical Target ID. the target, but make it logical. ✨

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file this bad boy lives in, for when you wanna read the source like the little detective you are:

  • Kernel file ./drivers/message/fusion/mptsas.c

and now the MASSIVE friend group of related pages β€” literally the whole mptsas extended universe, I'm obsessed 😭:

bestie there are like 27 of these, I counted, go read them all or at least pretend you did πŸ™ˆ

that's the whole page, no cap, nothing skipped πŸ’œ

and before you go β€” cute lil sign-off: this one lives under ./drivers/message/fusion, it's dated October 2026, and the page name on the tin is mptsas_find_...hys_disk_num(9) (the dots are canon, we don't question the dots 🌈). periodt. πŸŽ€

πŸ“¦ where this page comes from