mpt3sas_tra...xisting_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mpt3sas_transport_del_phy_from_an_existing_port β€” delete phy from existing port

okay so welcome to the Kernel API Manual bestie, we're doing driver internals today 🫢 this one's a function page, not a command page, so no flags to memorise β€” just vibes, structs, and one very long function name. lowkey iconic of it.


✨ NAME ✨

mpt3sas_transport_del_phy_from_an_existing_port β€” delete phy from existing port

like, the whole job. removing a phy from a port that already exists. that's it, that's the function πŸ’…


🌸 SYNOPSIS 🌸

void mpt3sas_transport_del_phy_from_an_existing_port (struct
MPT3SAS_ADAPTER *ioc , struct _sas_node *sas_node , struct _sas_phy
*mpt3sas_phy );

returns void, so it gives you nothing back β€” not even a status code. it just does the thing and dips 😭 no cap.


πŸŽ€ ARGUMENTS πŸŽ€

three args, all pointers, all mandatory. let's go through them like a group chat roll call:

  • ioc β€” the per adapter object. like, the whole adapter. the main character of the mpt3sas universe πŸ‘‘
  • sas_node β€” the sas node object (either expander or sas host). so it's giving expander energy or sas host energy, depending on what you hand it πŸ’«
  • mpt3sas_phy β€” the mpt3sas per phy object. the actual phy we're yeeting out of the port. bye bestie πŸ¦‹

πŸ”₯ SEE ALSO πŸ”₯

first up, the source file itself, in case you wanna read the real thing (and honestly, respect):

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

and now the extended universe β€” the whole transport.c friend group, no one gets left out πŸ’–:

ngl the add-side sibling is right there in that list β€” mpt3sas_transport_add_phy_to_an_existing_port(9) β€” so if you're ever like "wait, how do I put it back", that's your girl 🫢

aaaand that's the whole page, bestie. short, sweet, extremely specific πŸ’€

sign-off time ✨ this lil beauty lives under ./drivers/scsi/mpt3sas, and the manual's dated October 2026 β€” so yeah, it's from the future, we don't question it πŸŒˆπŸ’œ periodt.

πŸ“¦ where this page comes from