mpi3mr_get_port_id_by_rphy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ mpi3mr_get_port_id_by_rphy πŸ’…

okay so this is a page from the Kernel API Manual (manual section 9, bestie β€” kernel internals, not your average man 1 situation), and it's all about mpi3mr_get_port_id_by_rphy. iconic function name, mildly terrifying length, we move.


🌸 NAME 🌸

mpi3mr_get_port_id_by_rphy β€” get the port number from a SAS rphy. literally that's the whole gig 🫢


πŸŽ€ SYNOPSIS πŸŽ€

u8 mpi3mr_get_port_id_by_rphy (struct mpi3mr_ioc *mrioc , struct
       sas_rphy *rphy );

so it returns a u8, takes two pointers, and it is right there waiting for you to call it. slay.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • mrioc β€” your adapter instance reference. like, the controller's whole vibe and identity in one struct ✨
  • rphy β€” the SAS transport layer's remote phy object. the little guy in the transport layer who knows where a device physically sits 🧚

πŸ’– DESCRIPTION πŸ’–

so what it does: it retrieves the HBA port number that the device pointed at by the rphy object is attached with. that's it. one job, does it well, no notes πŸ‘‘

no cap, that's the entire description. some functions really are just "find the port number, go home."


πŸ”₯ RETURN πŸ”₯

Returns a valid port number on success. otherwise you get OxFFFF β€” and yes, it's written exactly like that in the source doc, O and all, so I'm not touching it. copy-paste responsibly, bestie πŸ™ˆ

ngl, when you see OxFFFF come back, that's your signal that the lookup did not succeed. vibe check: failed. πŸ’€

🌈 SEE ALSO 🌈

buckle up, this list is long β€” it's giving "the whole friend group showed up to the function." every single one of these, in order, no skips:

the file itself:

  • Kernel file ./drivers/scsi/mpi3mr/mpi3mr_transport.c

the crew:


and that's the whole page, bestie β€” no crumbs left behind πŸ“

cute lil sign-off: this masterpiece lives in ./drivers/scsi/mpi3mr, it's dated October 2026, and it's filed under mpi3mr_get_port_id_by_rphy(9). go read the source, it's giving main character energy πŸ’œβœ¨
πŸ“¦ where this page comes from