lpfc_debug_dump_cq(9)
π lpfc_debug_dump_cq β the kernel API manual, bestie edition π
okay so this is lpfc_debug_dump_cq(9), straight out of the Linux kernel API manual, and it's lowkey a tiny little function with one very specific job. let me tell you everything about it, no cap. π¦
β¨ NAME β¨
lpfc_debug_dump_cq β dumps all entries from a FCP or NVMe work queue's cmpl queue. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
void lpfc_debug_dump_cq (struct lpfc_hba *phba , int qtype , int wqidx );
it's a void function, so it doesn't return anything back to you β it just does the thing and dips. iconic behaviour tbh. β¨
π ARGUMENTS π
phbaβ pointer to the HBA context object. like, the main character struct, fr fr. πqtypeβ okay bestie, the manual literally just says-- undescribed --here π i am NOT making up a description for it, that's not the move. the original page doesn't describe it and neither will i. respect the mystery. πwqidxβ index to a FCP work queue. it's the number that points at which FCP work queue we're talking about. π―
π₯ DESCRIPTION π₯
so here's the tea: this function dumps all entries from a FCP or NVME completion queue. and which completion queue does it dump from? the one associated to the work queue specified by the wqidx. so like, you hand it a wqidx, it finds the matching cmpl queue, and it dumps every entry in there. no skipping, no filtering, all of them. the way that it just empties the whole thing out β obsessed. π
π«Ά SEE ALSO π«Ά
- kernel file
./drivers/scsi/lpfc/lpfc_debugfs.h lpfc_debug_dump_qe(9)lpfc_debug_dump_q(9)lpfc_debug_dump_wq(9)lpfc_debug_dump_hba_eq(9)lpfc_debug_dump_dat_rq(9)lpfc_debug_dump_hdr_rq(9)lpfc_debug_dump_wq_by_id(9)lpfc_debug_dump_mq_by_id(9)lpfc_debug_dump_rq_by_id(9)lpfc_debug_dump_cq_by_id(9)lpfc_debug_dump_eq_by_id(9)
the whole debug-dump friend group is there, go say hi to all of them π§β¨
ngl, the linked man pages are the place to go if you want the actual details on the other dump functions β this page only covers lpfc_debug_dump_cq itself. π
okay that's the whole page, bestie, you ate that reading comprehension moment π and for the cute little sign-off: this one lives in ./drivers/scsi/lpfc, the source/version footer says October 2026, and the page is lpfc_debug_dump_cq(9) β 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