dpmac_set_protocol(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 as enum 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 πŸ‘‘:


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