dpmac_set_protocol(9)
π¦ dpmac_set_protocol(9) β ok bestie, let's talk DPMAC
So this is a page from the Kernel API Manual, and it's all about dpmac_set_protocol β one little function whose whole entire job is reconfiguring the DPMAC protocol. That's it. That's the vibe. β¨
β¨ NAME β¨
dpmac_set_protocol β literally just "Reconfigure the DPMAC protocol". Iconic, concise, no notes. π
π SYNOPSIS π
int dpmac_set_protocol (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , enum dpmac_eth_if protocol );
Likeβ¦ copy that exactly, okay? Don't retype it from memory, I beg you. π
π ARGUMENTS π
mc_ioβ a pointer to the opaque I/O object. Lowkey the mystery box of the group chat; you don't look inside, you just pass it along. π«Άcmd_flagsβ the command flags, and bestie they're one or more of'MC_CMD_FLAG_'. Yes, that's the actual name in quotes. Yes, you keep the quotes. πtokenβ the token of the DPMAC object. It's your little hall pass for this specific DPMAC, iykyk. π¦protocolβ the new protocol you want the DPMAC reconfigured into. It's typed asenum dpmac_eth_if, so slay, but keep it in the enum. β
πΈ RETURN πΈ
The original genuinely doesn't say anything under RETURN β no description, no values, nothing. So I'm not out here making stuff up for you, bestie. π Empty section is empty. Not me inventing exit codes. Periodt.
π SEE ALSO π
Kernel file β the one and only:
./drivers/net/ethernet/freescale/dpaa2/dpmac.c
And the whole DPMAC friend group, go say hi to all of them π:
dpmac_open(9)dpmac_close(9)dpmac_get_attributes(9)dpmac_set_link_state(9)dpmac_get_counter(9)dpmac_get_api_version(9)dpmac_get_statistics(9)
Lowkey reminder: everything literal here β the function signature, the'MC_CMD_FLAG_'bit, the file path, all the(9)cross-refs β stays exactly as written. Cute font, same facts. That's the whole assignment. π
Okay that's the whole page, go be a main character with your DPMAC reconfiguration. π§ This little cutie came straight out of ./drivers/net/ethernet/freesca... (the footer truncated it like that, so that's how we're leaving it, no editing bestie), dated October 2026, and it signs off as dpmac_set_protocol(9) β same as it started, full circle, obsessed. ππ₯
π¦ 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