dpmac_get_api_version(9)
β¨ dpmac_get_api_version(9) β¨
okay so this is a page from the Kernel API Manual, and the function is dpmac_get_api_version β literally just "Get Data Path MAC version." that's the whole vibe. it's a getter. it gets the version. slay π
πΈ NAME πΈ
dpmac_get_api_version β Get Data Path MAC version π
π¦ SYNOPSIS π¦
int dpmac_get_api_version (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
*major_ver , u16 *minor_ver );
so yeah, it returns an int, takes four things, and two of those four are pointers because it's gotta hand the version numbers back to you. classic. π₯
π ARGUMENTS π
mc_ioβ Pointer to MC portal's I/O object. this is your portal handle bestie, you gotta pass it, no cap π«Άcmd_flagsβ Command flags; one or more of'MC_CMD_FLAG_'β yeah the manpage literally leaves it dangling like that with the trailing underscore, iykyk, that's how the flags are named πmajor_verβ Major version of data path mac API. au16 *, it gets filled in for you πminor_verβ Minor version of data path mac API. also au16 *, also gets filled in β¨
π RETURN π
so this section in the original isβ¦ empty. like, genuinely nothing here. no return values listed, no error codes spelled out. the synopsis says it returns int, and that's literally all the info we get. not me staring at a blank section π β anyway, don't come for me, I'm reporting exactly what's there.
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/freescale/dpaa2/dpmac.cβ go read the source if you want the tea fr fr dpmac_open(9)dpmac_close(9)dpmac_get_attributes(9)dpmac_set_link_state(9)dpmac_get_counter(9)dpmac_set_protocol(9)dpmac_get_statistics(9)
the whole dpmac friend group, all linked up π
and that's the page, bestie π§ this lil gem comes from ./drivers/net/ethernet/freesca... (yeah, the footer truncates it just like that, iconic) and it's dated October 2026, filed under dpmac_get_api_version(9) in the Kernel API Manual. 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