lpfc_debugfs_disc_trc_data(9)
π lpfc_debugfs_disc_trc_data β from the Kernel API Manual, bestie
okay so real talk, this one is a kernel function called lpfc_debugfs_disc_trc_data and it lives in the Kernel API Manual, and it is literally the discovery-log dumper. no cap. let's get into it π«Ά
β¨ NAME β¨
lpfc_debugfs_disc_trc_data β Dump discovery logging to a buffer π
πΈ SYNOPSIS πΈ
int lpfc_debugfs_disc_trc_data (struct lpfc_vport *vport , char *buf ,
int size );
like, that's the whole signature, she's not complicated π
π ARGUMENTS π
vportβ the vport you're pulling the log info out of. she's the source of truth here πbufβ the buffer where the log gets dumped. yep, we're pouring it in there πsizeβ the maximum amount of data to process. like a hard limit, don't @ me π
π¦ DESCRIPTION π¦
So this routine gathers the lpfc discovery debugfs data from the vport and dumps it to buf, up to size number of bytes. That's the vibe check β
The way it works is genuinely kind of iconic: it starts at the next entry in the log and processes the log until the end of the buffer. Then it loops back around and gathers from the beginning of the log, processing until it hits the current entry. so it's like a little wrap-around moment, main character energy π
π₯ NOTES π₯
okay bestie, important: discovery logging will be disabled while this routine dumps the log. (yes, the original says "while while" β we love her anyway π)
Return Value: this routine returns the amount of bytes that were dumped into buf, and it will not exceed size. so like, no overflow shenanigans, she stays in her lane β¨
β SEE ALSO β
Kernel file ./drivers/scsi/lpfc/lpfc_debugfs.c β go read the source, iykyk π§
and then the whole friend group, fr fr:
lpfc_debugfs_slow_ring_trc_data(9)lpfc_debugfs_hbqinfo_data(9)lpfc_debugfs_commonxripools_data(9)lpfc_debugfs_multixripools_data(9)lpfc_debugfs_lockstat_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)
and that's the page, bestie!! π this one's from ./drivers/scsi/lpfc, Kernel API Manual, dated October 2026, and it's titled lpfc_debugfs_disc_trc_data(9) β slay, go read your logs πβ¨
π¦ 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