lpfc_debugfs_lockstat_data(9)
π
lpfc_debugfs_lockstat_data β the (9) kernel API manual page, bestie edition
okay so you found the lockstat dumper, love that for you π«Ά this is section 9 of the kernel API manual β the big-brain kernel-space section β and yeah, the whole name is lpfc_debugfs_lockstat_data(9), say it with your chest.
β¨ NAME β¨
lpfc_debugfs_lockstat_data β literally just dumps Hardware Queue info into a buffer. that's the whole job. she's a dumper. π
π¦ SYNOPSIS π¦
int lpfc_debugfs_lockstat_data (struct lpfc_hba *phba , char *buf , int
size );
that's it, that's the signature, three args and an int coming back at you β¨
π ARGUMENTS π
phbaβ the HBA you're gathering host buffer info from. she's the main character here, everybody else is a supporting role πbufβ the buffer where the log gets dumped. your canvas, your stage, your little text parking spot πΈsizeβ the maximum amount of data to process. like a word count but make it a byte count, no cap π«Ά
π₯ DESCRIPTION π₯
so this routine dumps the Hardware Queue info from phba into buf, and it will not go past size bytes. periodt.
and the way it does that is honestly kind of iconic: first it dumps a header into buf that describes the current hdwq state, and then it dumps info on each hdwq entry into buf β and it keeps going until either size bytes have been dumped or all the hdwq info has been dumped. whichever comes first, bestie, she's not gonna overstay π
π NOTES π
this routine will rotate through each configured Hardware Queue each time it's called. so every call she's serving a different queue β it's giving carousel, it's giving "you get a turn, you get a turn" π
Return Value: this routine returns the amount of bytes that were dumped intobuf, and it will not exceedsize. so like, if you asked for a smallsize, don't act surprised when the number is small π
π SEE ALSO π
the kernel file that holds the whole thing:
Kernel file ./drivers/scsi/lpfc/lpfc_debugfs.c
and now, the full friend group β every single one, bestie, no skipping, I promised π:
lpfc_debugfs_disc_trc_data(9)lpfc_debugfs_slow_ring_trc_data(9)lpfc_debugfs_hbqinfo_data(9)lpfc_debugfs_commonxripools_data(9)lpfc_debugfs_multixripools_data(9)lpfc_debugfs_dumpHBASlim_data(9)lpfc_debugfs_dumpHostSlim_data(9)lpfc_debugfs_nodelist_data(9)lpfc_debugfs_nvmestat_data(9)lpfc_debugfs_scsistat_data(9)lpfc_debugfs_ioktime_data(9)lpfc_debugfs_nvmeio_trc_data(9)lpfc_debugfs_hdwqstat_data(9)lpfc_debugfs_disc_trc(9)lpfc_debugfs_slow_ring_trc(9)lpfc_debugfs_nvme_trc(9)lpfc_debugfs_disc_trc_open(9)lpfc_debugfs_slow_ring_trc_open(9)lpfc_debugfs_hbqinfo_open(9)lpfc_debugfs_multixripools_open(9)lpfc_debugfs_lockstat_open(9)lpfc_debugfs_ras_log_open(9)lpfc_debugfs_dumpHBASlim_open(9)lpfc_debugfs_dumpHostSlim_open(9)lpfc_debugfs_nodelist_open(9)lpfc_debugfs_lseek(9)lpfc_debugfs_read(9)lpfc_debugfs_release(9)lpfc_debugfs_multixripools_write(9)lpfc_idiag_cmd_get(9)lpfc_idiag_open(9)lpfc_idiag_release(9)lpfc_idiag_cmd_release(9)lpfc_idiag_pcicfg_read(9)lpfc_idiag_pcicfg_write(9)lpfc_idiag_baracc_read(9)lpfc_idiag_baracc_write(9)lpfc_idiag_queinfo_read(9)lpfc_idiag_que_param_check(9)lpfc_idiag_queacc_read_qe(9)lpfc_idiag_queacc_read(9)lpfc_idiag_queacc_write(9)lpfc_idiag_drbacc_read_reg(9)lpfc_idiag_drbacc_read(9)lpfc_idiag_drbacc_write(9)lpfc_idiag_ctlacc_read_reg(9)lpfc_idiag_ctlacc_read(9)lpfc_idiag_ctlacc_write(9)lpfc_idiag_mbxacc_get_setup(9)lpfc_idiag_mbxacc_read(9)lpfc_idiag_mbxacc_write(9)lpfc_idiag_extacc_avail_get(9)lpfc_idiag_extacc_alloc_get(9)lpfc_idiag_extacc_drivr_get(9)lpfc_idiag_extacc_write(9)lpfc_idiag_extacc_read(9)lpfc_debugfs_initialize(9)lpfc_debugfs_terminate(9)lpfc_debug_dump_all_queues(9)
π§ sign-off π§
this whole page lives under ./drivers/scsi/lpfc in the source tree, dated October 2026, and yes it's still filed as lpfc_debugfs_lockstat_data(9) because she's consistent like that π
go dump some queues, bestie β you're gonna 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