_scsih_add_...xisting_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… _scsih_add_...xisting_port(9) β€” Kernel API Manual πŸŽ€

okay so bestie, this is a page straight outta the Kernel API Manual and it's lowkey the most niche port-bookkeeping function ever. the vibes? very "backstage crew at the port party, quietly moving phys around so nobody trips." let's get into it πŸ’–


✨ NAME ✨

_scsih_add_or_del_phys_from_existing_port β€” add/remove phy to/from right port πŸ¦‹

like, yes, that's the whole name, and yes, it does exactly what it says. no cap.


✨ SYNOPSIS ✨

void _scsih_add_or_del_phys_from_existing_port (struct MPT3SAS_ADAPTER
*ioc , struct hba_port *hba_port_entry , struct hba_port *port_table ,
int index , int port_count );

it's giving void β€” nothing comes back, it just does stuff to the ports. main character behavior honestly πŸ‘‘


✨ ARGUMENTS ✨

so here's the whole cast, and every single one of them matters:

  • ioc β€” per adapter object. like, the actual adapter you're working on 🫢
  • hba_port_entry β€” hba port table entry. the entry itself, the one being handled.
  • port_table β€” temporary port table. exactly what it says: temporary, don't get attached 😭
  • index β€” hba port entry index. the address, the little number that tells you which entry.
  • port_count β€” number of ports available after host reset. this is the post-reset census, and yes it's a whole reset, so it's a whole thing πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/scsi/mpt3sas/mpt3sas_scsih.c β€” and because this function lives in an absolutely iconic neighborhood, here is the entire friend group, every last one of them, no skips, no skimming:

like… that's the whole mpt3sas friend group in one paragraph, and every single one of them said hi. iykyk πŸ’€πŸ’–


🌸 the cute sign-off 🌸

this little beauty lives under ./drivers/scsi/mpt3sas, dated October 2026, and it's handing out _scsih_add_...xisting_port(9) energy the entire time. periodt. go move some phys, bestie πŸ§šβ€β™€οΈβœ¨πŸŽ€

πŸ“¦ where this page comes from