dpsw_if_get_counter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dpsw_if_get_counter β€” the one where you grab ONE specific counter off ONE specific interface

okay so bestie, welcome to the Kernel API Manual ✨ this page is dpsw_if_get_counter(9) and it's literally the "hey can I peek at that counter on that interface" call. narrow, specific, does exactly one thing. we love a focused icon πŸŽ€


🌸 NAME 🌸

dpsw_if_get_counter β€” Get specific counter of particular interface πŸ’–

like. it gets a counter. a specific one. of a particular interface. no cap, the name is the whole vibe.


✨ SYNOPSIS ✨

int dpsw_if_get_counter (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , u16 if_id , enum dpsw_counter type , u64 *counter );

six arguments. count 'em. she's thorough πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • mc_io β€” Pointer to MC portal's I/O object. yeah it's the portal handle, you know the drill by now 🫢
  • cmd_flags β€” Command flags; one or more of 'MC_CMD_FLAG_'. flags on flags on flags.
  • token β€” Token of DPSW object. that's your object token, keep it safe bestie.
  • if_id β€” Interface Identifier. which interface we're snooping on πŸ‘€
  • type β€” Counter type. this is the enum dpsw_counter situation β€” the actual "which counter" of it all.
  • counter β€” return value. yes, it's literally named counter and it is a u64 *. the results go here πŸ“₯

πŸ”₯ RETURN πŸ”₯

Completion status. '0' on Success; Error code otherwise.

so like β€” zero means slay, anything else means something went sideways and you get an error code instead 😭 not ambiguous. we stan.


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/net/ethernet/freescale/dpaa2/dpsw.c β€” aka where the actual source lives, go read it iykyk πŸ“–

the whole friend group, in order:


okay that's the whole page, you ate that πŸ’…βœ¨

and a little sign-off moment for the credits: this cutie comes from ./drivers/net/ethernet/freesca... and it's dated October 2026 πŸ—“οΈ β€” go forth and count your counters, bestie πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from