__mpt3sas_get_sdev_by_rphy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __mpt3sas_get_sdev_by_rphy β€” from the Kernel API Manual, bestie πŸŽ€

okay so picture this: you're deep in the SCSI stack, everybody's yelling about rphys and sas_devices, and you just need one little lookup to go right. that's this function. she's a search function. she's lowkey iconic. let's get into it ✨


🌸 NAME 🌸

__mpt3sas_get_sdev_by_rphy β€” sas device search, fr fr πŸ”


πŸ¦‹ SYNOPSIS πŸ¦‹

struct _sas_device * __mpt3sas_get_sdev_by_rphy (struct MPT3SAS_ADAPTER
*ioc , struct sas_rphy *rphy );

like that's the whole summoning circle. give her the adapter, give her the rphy, she gives you back a struct _sas_device *. no cap. πŸ’«


πŸŽ€ ARGUMENTS πŸŽ€

  • ioc β€” the per adapter object. yes, per adapter, like each one has its own whole personality and you gotta hand over the right one πŸ’–
  • rphy β€” a sas_rphy pointer. this is the thing you're searching from, bestie. she's your starting point 🧚

πŸ‘‘ CONTEXT πŸ‘‘

okay this part matters, listen up: this function will acquire ioc->sas_device_lock, and it will release it before returning the sas_device object.

so like… the lock is handled for you, she's not gonna walk out the door still holding it πŸ™ that's the whole vibe. don't go double-locking, don't panic, just trust her.


⭐ DESCRIPTION ⭐

she searches for the sas_device starting from the rphy object, then returns the sas_device object. that's it. that's the function. short, sweet, and absolutely serving ✨

lowkey the most stressful part of this whole page is that SEE ALSO list and we both know it πŸ’€

🌈 SEE ALSO 🌈

it's giving "she knows everybody at the party" because look at this contact list. literally every single one, in order, no skipping 🫢

first up, the home base:

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

and then the whole extended friend group πŸ’œ

that's the whole list, every single one, and yes i counted, and yes i'm proud of us πŸ’…


πŸ’– cute lil sign-off: this page lives in ./drivers/scsi/mpt3sas, and it's dated October 2026. go forth and find your sas_device, bestie. you got this. πŸ¦‹βœ¨
πŸ“¦ where this page comes from