qla2x00_sns_gid_pt(9)
π
qla2x00_sns_gid_pt β¨ the SNS fabric-friend-finder β¨
okay so bestie, you're looking at qla2x00_sns_gid_pt β yes that's the whole name, and yes you will be typing it correctly the first time because I believe in you π«Ά this is a Kernel API Manual page and it's lowkey iconic, let's get into it.
πΈ NAME πΈ
qla2x00_sns_gid_pt β SNS scan for fabric devices via GID_PT command.
like, it goes and asks the fabric "hey who's out there" using the GID_PT command, and then it writes down everybody it finds. no cap. π
β SYNOPSIS β
int qla2x00_sns_gid_pt (scsi_qla_host_t *vha , sw_info_t *list );
that's it, that's the whole vibe check. returns an int, takes two pointers, slays. β¨
π ARGUMENTS π
vhaβ HA context. the host adapter's whole situation, its context, its little world. π¦listβ switch info entries to populate. this is the list you're filling up with the fabric devices you found, so it comes back all cute and populated instead of empty. π
π₯ DESCRIPTION π₯
not me about to explain this in one sentence: this command uses the old Execute SNS Command mailbox routine. that's the legacy one, the vintage one, the one with main character energy from an earlier era of the driver. π°οΈβ¨
and yeah the original page literally spells it "Exectute" β we don't fix, we don't merge, we don't invent, we just report. periodt. π
so the flow is: you call it with your vha and your list, it does its SNS scan via GID_PT, and your list gets populated with switch info entries. iconic behaviour, no notes. π
π«Ά NOTE π«Ά
bestie listen β Non-Nx_Ports are not requested. that's a whole category that just doesn't get asked for. not requested, not on the guest list, not in the group chat. π
and the return value: Returns 0 on success. that's the good ending. π
π§ SEE ALSO π§
kernel file: ./drivers/scsi/qla2xxx/qla_gs.c β that's where the source lives, go say hi π
and now the full bestie roll call, because every single one of these has to be here and I would never do them dirty by skipping any π€:
qla2x00_prep_ms_iocb(9)qla24xx_prep_ms_iocb(9)qla2x00_prep_ct_req(9)qla2x00_ga_nxt(9)qla2x00_gid_pt(9)qla2x00_gpn_id(9)qla2x00_gnn_id(9)qla2x00_rft_id(9)qla2x00_rff_id(9)qla2x00_rnn_id(9)qla2x00_rsnn_nn(9)qla2x00_prep_sns_cmd(9)qla2x00_sns_ga_nxt(9)qla2x00_sns_gpn_id(9)qla2x00_sns_gnn_id(9)qla2x00_sns_rft_id(9)qla2x00_sns_rnn_id(9)qla2x00_mgmt_svr_login(9)qla2x00_prep_ms_fdmi_iocb(9)qla24xx_prep_ms_fdmi_iocb(9)qla2x00_prep_ct_fdmi_req(9)qla2x00_hba_attributes(9)qla2x00_port_attributes(9)qla2x00_fdmi_rhba(9)qla2x00_fdmi_rprt(9)qla2x00_fdmi_rpa(9)qla2x00_fdmi_register(9)qla2x00_gfpn_id(9)qla2x00_gff_id(9)
see? all 29 of them. not a single one left on read. π
okay that's the whole page, mwah π β this little beauty comes from ./drivers/scsi/qla2xxx, dated October 2026, and it's filed under qla2x00_sns_gid_pt(9) in case you need to find it again. go forth and scan those fabric devices, bestie. slay. ππ
π¦ 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