dpmac_get_api_version(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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. a u16 *, it gets filled in for you πŸ“
  • minor_ver β€” Minor version of data path mac API. also a u16 *, 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 πŸ‘‘

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