from_fw_port_mod_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ from_fw_port_mod_type(9) ✨

okay so bestie, welcome to the Kernel API Manual β€” we're looking at from_fw_port_mod_type(9) today and honestly? it's a little translator gig and it's lowkey iconic for it πŸ’…


🌸 NAME 🌸

from_fw_port_mod_type β€” translate Firmware Port/Module type to Ethtool

like, it takes the firmware's vibes and re-expresses them in Ethtool language. a whole bilingual queen 🫢


πŸŽ€ SYNOPSIS πŸŽ€

int from_fw_port_mod_type (enum fw_port_type port_type , enum
       fw_port_module_type mod_type );

that's the whole signature, no cap β€” returns an int, takes two enums, slays ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • port_type β€” Firmware Port Type. yes bb, the port one πŸ’–
  • mod_type β€” Firmware Module Type. and this is the module one, they're a matching set fr fr πŸŽ€

πŸ’œ DESCRIPTION πŸ’œ

Translate Firmware Port/Module type to Ethtool Port Type.

that's it. that's the whole job. it takes the firmware port type and the firmware module type, and hands you back the Ethtool port type. a glow-up in enum form, periodt πŸ”₯


🌈 SEE ALSO 🌈

go read those too bestie, the whole friend group is valid πŸ‘‘


and that's the page!! πŸ¦‹ sign-off time: this lil beauty comes from ./drivers/net/ethernet/chelsio..., dated October 2026, and it lives in the Kernel API Manual. mwah, go translate some port types πŸ’‹βœ¨

πŸ“¦ where this page comes from