mxl862xx_fw...ap_clear_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mxl862xx_fw...ap_clear_bit(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ β€” yes, section 9, the deep lore section. this one's a tiny little function in the mxl862xx driver and honestly? she's short but she matters. let's get into it πŸŽ€


🌸 NAME 🌸

mxl862xx_fw_portmap_clear_bit β€” clears exactly one single port bit in a firmware portmap. that's it. one bit. she's focused, she's minimal, she's iconic πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void mxl862xx_fw_portmap_clear_bit (__le16 *map , int port );

no return value, no drama, no error code. void. she just does the thing and leaves 😌


✨ ARGUMENTS ✨

  • map β€” the firmware portmap array, fr fr. it's __le16 * and it's got MXL862XX_FW_PORTMAP_WORDS entries in it, so like… know how big your array is before you hand it over, bestie 🫢
  • port β€” the port index. valid range is 0..MXL862XX_MAX_BRIDGE_PORTS-1. keep it in range, okay? that's the vibe check πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/net/dsa/mxl862xx/mxl862xx.h β€” that's the header, that's where the lore lives πŸ“–

and the whole friend group:

like, mxl862xx_fw_portmap_set_bit(9) is literally her evil twin (affectionate) β€” one sets the bit, one clears the bit, balance restored 🌈


lowkey a reminder: this is clearing a bit in a __le16 array, so the endianness is little-endian and it's doing exactly what it says on the tin. no cap πŸ’€

and that's the whole page, bestie!! 🧚 source lives at ./drivers/net/dsa/mxl862xx and this lil gem is dated October 2026 β€” go forth and clear some bits, mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from