bnx2i_get_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bnx2i_get_stats(9) β€” the kernel API manual, but make it make sense πŸŽ€

okay so bestie, welcome to bnx2i_get_stats(9) from the Kernel API Manual ✨ we're in the bnx2i corner of the kernel today and honestly? it's giving "small function, big responsibilities." let's get into it πŸ¦‹


🌸 NAME 🌸

bnx2i_get_stats β€” grab a whole bunch of statistics from the iSCSI offload πŸ‘‘ like literally, various statistics, that's the whole job πŸ’–


✨ SYNOPSIS ✨

int bnx2i_get_stats (void *handle );

that's it. one handle in, an int out. clean, minimal, iconic πŸŽ€


🫢 ARGUMENTS 🫢

  • handle β€” this one's a bnx2i_hba, no cap πŸ’… that's the adapter handle you're passing in, and yes it's typed as void * in the signature, we don't make the rules

πŸ’– DESCRIPTION πŸ’–

so here's the tea β˜• this is a function callback exported via the bnx2i – cnic driver interface πŸ”₯ and its whole purpose in life is to retrieve various iSCSI offload related statistics πŸ“Š

the way that it's a callback is honestly so main character of it β€” the cnic side calls in, bnx2i hands over the stats, everyone's happy 🌈


πŸ¦‹ SEE ALSO πŸ¦‹

kernel file ./drivers/scsi/bnx2i/bnx2i_init.c β€” and while you're in the neighborhood, go say hi to the whole friend group πŸ‘―β€β™€οΈ:


ngl bestie, if you're deep in bnx2i driver land, you're built different and I respect it 🫑

mwah πŸ’‹ this page lives in ./drivers/scsi/bnx2i, dated October 2026, and it's part of the Kernel API Manual β€” go read the whole bnx2i saga, it slays πŸ’œ

πŸ“¦ where this page comes from