lpfc_debugfs_lockstat_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 into buf, and it will not exceed size. so like, if you asked for a small size, 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 🌈:


🧚 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