mxl862xx_fw_portmap_set_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mxl862xx_fw_portmap_set_bit β€” a Kernel API Manual moment ✨

okay so bestie, welcome to the Kernel API Manual entry for mxl862xx_fw_portmap_set_bit. this one's short and sweet and honestly kind of iconic in its minimalism πŸŽ€


🌸 NAME 🌸

mxl862xx_fw_portmap_set_bit β€” sets one single port bit in a firmware portmap. that's it. that's the whole vibe. one bit. one port. slay πŸ’…


✨ SYNOPSIS ✨

void mxl862xx_fw_portmap_set_bit (__le16 *map , int port );

that's the whole function signature, no cap. void return, so like… it does its thing and doesn't report back. mysterious. love that for it πŸ¦‹


🫢 ARGUMENTS 🫢

  • map β€” the firmware portmap array, and she's a whole array bestie: exactly MXL862XX_FW_PORTMAP_WORDS entries long. it's a __le16 *, so little-endian words, iykyk πŸ’–
  • port β€” the port index you're setting a bit for. valid range is 0..MXL862XX_MAX_BRIDGE_PORTS-1 β€” so from zero all the way up to one less than the max bridge ports. respect the bounds fr fr πŸ™ˆ
ngl this thing takes a raw pointer and an index, so the bounds are on you, bestie. the manpage gives you the range and trusts you to behave 🌈

πŸ‘‘ SEE ALSO πŸ‘‘

like the kernel file itself, bestie:

Kernel file ./drivers/net/dsa/mxl862xx/mxl862xx.h

and the whole squad of related entries, all of them, in order:

  • mxl862xx_fw_portmap_clear_bit(9) β€” the opposite energy 🧚
  • mxl862xx_fw_portmap_is_empty(9) β€” the vibe check
  • struct mxl862xx_vf_vid(9)
  • struct mxl862xx_vf_block(9)
  • struct mxl862xx_evlan_block(9)
  • struct mxl862xx_port_stats(9)
  • struct mxl862xx_port(9)
  • struct mxl862xx_pcs(9)
  • struct mxl862xx_fw_version(9)
  • struct mxl862xx_priv(9)

and that's the whole page, bestie πŸ’€βœ¨

cute little sign-off: this page lives under ./drivers/net/dsa/mxl862xx, it's dated October 2026, and it's filed as mxl862xx_fw_portmap_set_bit(9). periodt πŸ’œ πŸ“

πŸ“¦ where this page comes from