dpmac_set_link_state(9)
π dpmac_set_link_state β a Kernel API Manual moment
okay so bestie, welcome to dpmac_set_link_state, a little function living its best life in the Kernel API Manual. no cap, the whole job of this icon is setting the Ethernet link status β that's it, that's the vibe. π¦
β¨ NAME β¨
dpmac_set_link_state β Set the Ethernet link status
π SYNOPSIS π
int dpmac_set_link_state (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , struct dpmac_link_state *link_state );
she's an int-returning girlie, and yes the line break is real, that's just how the manpage chose to lay it out π
πΈ ARGUMENTS πΈ
mc_ioβ Pointer to an opaque I/O object. opaque means you don't peek inside, you just hold hands with it and trust the process π«Άcmd_flagsβ Command flags; one or more of'MC_CMD_FLAG_'. yes, plural-able, stack 'em if you need to β¨tokenβ Token of DPMAC object. that's your little backstage pass to the DPMAC, keep it safe πlink_stateβ Link state configuration. this is where you tell her what the link should actually be doing π₯
β RETURN β
soβ¦ this section is literally empty on the page. no return values listed, nothing, a whole lot of silence π i'm not gonna invent lore that isn't there β if you need the return semantics, go read the actual thing. fr fr.
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/freescale/dpaa2/dpmac.cβ the source, the origin story, the main character herself dpmac_open(9)dpmac_close(9)dpmac_get_attributes(9)dpmac_get_counter(9)dpmac_get_api_version(9)dpmac_set_protocol(9)dpmac_get_statistics(9)
like, the entire dpmac friend group, and honestly? obsessed. go read them all, iykyk π
π reminder: everything above is exactly what the page says β don't go adding your own flags or guessing at returns, that's not slay, that's just making stuff up.
and that's the whole vibe check bestie, mwah π this little number comes to you from ./drivers/net/ethernet/freesca... (the path got a lil truncated, rip) and it's dated October 2026. go forth and set those link states, periodt πβ¨
π¦ 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