dpmac_get_counter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– dpmac_get_counter(9) β€” a.k.a. the dpmac_get_counter page, bestie πŸ’–

okay so this is a kernel API manual page (dpmac_get_counter(9)) and honestly? it's a little snack. it does exactly one thing and it does it cute. let's get into it πŸŽ€


✨ NAME ✨

dpmac_get_counter β€” read a specific DPMAC counter πŸ’…

like, one (1) counter. the specific one you asked for. no cap.


🌸 SYNOPSIS 🌸

int dpmac_get_counter (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , enum dpmac_counter_id id , u64 *value );

that's the whole vibe. it returns an int, it takes five args, and it is not here to waste your time πŸ¦‹


🫢 ARGUMENTS 🫢

okay bestie, here's who's who in the group chat:

  • mc_io β€” pointer to an opaque I/O object. opaque meaning you do not get to peek inside, it's giving mysterious main character energy πŸ™ˆ
  • cmd_flags β€” command flags; one or more of 'MC_CMD_FLAG_'. yes, plural, you can stack 'em πŸ’…
  • token β€” the token of the DPMAC object. it's the little ID badge that says which DPMAC we're talking to πŸ‘‘
  • id β€” the requested counter ID. it's an enum dpmac_counter_id, so like, pick your fighter ⭐
  • value β€” returned counter value. this is where the answer lands, it's an out-param bestie, that's the whole point πŸŽ€

πŸ”₯ RETURN πŸ”₯

it hands back the requested counter, and '0' otherwise. that's it, that's the whole return arc 😭


🌈 SEE ALSO 🌈

the kernel file lives right here, go be nosy:

./drivers/net/ethernet/freescale/dpaa2/dpmac.c

and the whole dpmac friend group, all linked up:


ngl if you're reading this page you're probably already deep in the DPMAC lore. proud of you. drink some water πŸ“

and that's the page, bestie!! it shipped from ./drivers/net/ethernet/freesca... and it is dated October 2026 (yes, the future, iconic behaviour ⏳✨). mwah, go read your counters πŸ’œ

πŸ“¦ where this page comes from