dpmac_get_counter(9)
π 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 anenum 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:
dpmac_open(9)dpmac_close(9)dpmac_get_attributes(9)dpmac_set_link_state(9)dpmac_get_api_version(9)dpmac_set_protocol(9)dpmac_get_statistics(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms