dpni_get_statistics(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dpni_get_statistics(9) β€” like, the Kernel API Manual page you've been waiting for ✨

okay bestie, gather round, because we're diving into dpni_get_statistics from the Kernel API Manual and honestly? it's giving "short but iconic." πŸŽ€


🌸 NAME 🌸

dpni_get_statistics β€” Get DPNI statistics. that's it, that's the whole name section, and yes she ate πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int dpni_get_statistics (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , u8 page , union dpni_statistics *stat );

so you're calling it like that ^^ β€” five args, one int coming back at you, periodt. 🌈


πŸ’– ARGUMENTS πŸ’–

okay literally every single one of these matters, so let's go one by one, no skipping πŸ™ˆ

  • mc_io β€” Pointer to MC portal's I/O object. yes, the portal. your whole entry point, lowkey main character energy πŸ‘‘
  • cmd_flags β€” Command flags; one or more of 'MC_CMD_FLAG_'. that's a quote from the page, iykyk β€” one or more of them, and they all start with 'MC_CMD_FLAG_' ⭐
  • token β€” Token of DPNI object. you gotta have your token, fr fr πŸŽ€
  • page β€” Selects the statistics page to retrieve, see DPNI_GET_STATISTICS output. Pages are numbered 0 to 6. so like... seven pages of stats deliciousness, pick your fighter πŸ¦‹
  • stat β€” Structure containing the statistics. it's a union dpni_statistics *, so the stats go in there when you're done πŸ’œ

πŸ’€ RETURN πŸ’€

so this section exists in the page and there is literally nothing listed under it 😭 no return values documented, no explanation, nothing. the void. the empty set. we love a mystery, but bestie β€” that's just how the page is written. don't come for me, I'm only the messenger 🫢

fr fr tho: the synopsis says it hands back an int, and the RETURN section here documents absolutely zero about it. that's the whole vibe check result.

πŸ”₯ SEE ALSO πŸ”₯

and now the part where she flexes her entire friend group. the Kernel file lives at ./drivers/net/ethernet/freescale/dpaa2/dpni.c and here's every single sibling function, all of them, no cap:

like, that's the whole squad πŸ’… each one gets a (9) because they're all kernel API pages, obviously.


πŸ’‘ tiny reminder bestie: when you need the actual output for a specific page number, the page points you at DPNI_GET_STATISTICS output. go look at that, not me. πŸ’–

and that's the page!! mwah 😘 huge shoutout to the source line ./drivers/net/ethernet/freesca... and the date October 2026 β€” that's the version footer, she's dated, she's sourced, she's iconic. slay, bye πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from