qla_logio_set_vp_index(9)
π qla_logio_set_vp_index β kernel API manual, bestie edition π
okay so real talk, we're in the Kernel API Manual today and the function we're stanning is qla_logio_set_vp_index. she's a lil one. she's an icon. she writes a vp_index into a login/logout IOCB and dips. periodt. β¨
β¨ NAME β¨
qla_logio_set_vp_index β write vp_index into a login/logout IOCB.
like literally that's her whole job and she does it flawlessly, no notes π«Ά
πΈ SYNOPSIS πΈ
void qla_logio_set_vp_index (struct qla_hw_data *ha , void *pkt , u16
vp_idx );
three args, void return, no drama. she takes what she takes and she gives nothing back (affectionately) π
π¦ ARGUMENTS π¦
haβ HBA pointer. the homegirl herself. πpktβ logio IOCB, and it's giving eitherlogio_entry_24xxorlogio_entry_24xx_ext, iykyk πvp_idxβ virtual port index. the star of the show, the main character energy of this whole function honestly π
π₯ DESCRIPTION π₯
okay so here's the vibe check that actually matters: vp_index widens from u8 on logio_entry_24xx all the way up to __le16 on logio_entry_24xx_ext on 29xx. so this function's whole flex is writing that field at the right width for whichever struct she got handed.
not me being obsessed with a width-correct field write π but fr fr that's the assignment and she ate π
π SEE ALSO π
Kernel file ./drivers/scsi/qla2xxx/qla_inline.h and her whole friend group:
qla24xx_calc_iocbs(9)qla29xx_calc_iocbs(9)qla_req_entry_size(9)qla_rsp_entry_size(9)qla_sts_cont_data_size(9)qla_rsp_ring_advance(9)qla_req_ring_slot(9)qla_req_ring_advance(9)qla_rsp_ring_rewind_to(9)
squad goals, no cap π
and that's the page!! this came out of ./drivers/scsi/qla2xxx, dated October 2026, and it's filed under qla_logio_set_vp_index(9) if you ever need to find her again. mwah, go forth and write your fields at the correct width bestie ππ§π
π¦ 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