mpt3sas_tra...xisting_port(9)
π 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 π:
_transport_get_port_id_by_sas_phy(9)_transport_sas_node_find_by_sas_address(9)_transport_get_port_id_by_rphy(9)_transport_convert_phy_link_rate(9)_transport_set_identify(9)mpt3sas_transport_done(9)_transport_expander_report_manufacture(9)_transport_delete_port(9)_transport_delete_phy(9)_transport_add_phy(9)mpt3sas_transport_add_phy_to_an_existing_port(9)_transport_sanity_check(9)mpt3sas_transport_port_add(9)mpt3sas_transport_port_remove(9)mpt3sas_transport_add_host_phy(9)mpt3sas_transport_add_expander_phy(9)mpt3sas_transport_update_links(9)_transport_get_expander_phy_error_log(9)_transport_get_linkerrors(9)_transport_get_enclosure_identifier(9)_transport_get_bay_identifier(9)_transport_expander_phy_control(9)_transport_phy_reset(9)_transport_phy_enable(9)_transport_phy_speed(9)_transport_smp_handler(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms