qla2x00_prep_sns_cmd(9)
π qla2x00_prep_sns_cmd
okay so bestie, welcome to the Kernel API Manual β yes we're reading kernel docs for fun now, that's the energy we're on β¨ this one's from the kernel API section and it's literally about prepping SNS command request fields for a query. tiny function, big main character energy.
πΈ SYNOPSIS πΈ
like, here's the whole vibe, character for character:
struct sns_cmd_pkt * qla2x00_prep_sns_cmd (scsi_qla_host_t *vha ,
uint16_t cmd , uint16_t scmd_len , uint16_t data_size );
it hands you back a struct sns_cmd_pkt * and takes four args, no cap π«Ά
π ARGUMENTS π
four besties walk into a function:
vhaβ HA context π that's your host adapter's whole situation, it needs to know which adapter we're talking aboutcmdβ GS command, the actual command we're firing offscmd_lenβ subcommand length, i.e. how long the sub-command isdata_sizeβ response size in bytes, so how big the answer coming back is gonna be
π¦ DESCRIPTION π¦
lowkey the most straightforward part: it returns a pointer to the ha's sns_cmd. that's it. that's the whole job. iconic, honestly π
β SEE ALSO β
the whole friend group π«Ά go read these too, iykyk:
kernel file ./drivers/scsi/qla2xxx/qla_gs.c
and the squad:
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_sns_ga_nxt(9)qla2x00_sns_gid_pt(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)
that's the whole page, bestie, go forth and prep those SNS commands π β¨
sign-off time π this one lives in ./drivers/scsi/qla2xxx, dated October 2026, and the manual is the Kernel API Manual β mwah, stan kernel docs π
π¦ 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