ENUM NCSI_NL_CHANNEL_ATTRS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum ncsi_nl_channel_attrs

okay so bestie, this page is from the Kernel API Manual β€” yes, actual kernel documentation, we're being academic today, slay ✨ β€” and it's literally just the enum that holds the channel-specific attributes for NCSI netlink. That's it, that's the whole vibe. Lowkey iconic.


✨ NAME ✨

enum ncsi_nl_channel_attrs β€” the NCSI netlink attributes that are channel-specific πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

enum ncsi_nl_channel_attrs {
    NCSI_CHANNEL_ATTR_UNSPEC ,
    NCSI_CHANNEL_ATTR ,
    NCSI_CHANNEL_ATTR_ID ,
    NCSI_CHANNEL_ATTR_VERSION_MAJOR ,
    NCSI_CHANNEL_ATTR_VERSION_MINOR ,
    NCSI_CHANNEL_ATTR_VERSION_STR ,
    NCSI_CHANNEL_ATTR_LINK_STATE ,
    NCSI_CHANNEL_ATTR_ACTIVE ,
    NCSI_CHANNEL_ATTR_FORCED ,
    NCSI_CHANNEL_ATTR_VLAN_LIST ,
    NCSI_CHANNEL_ATTR_VLAN_ID ,
    __NCSI_CHANNEL_ATTR_AFTER_LAST ,
    NCSI_CHANNEL_ATTR_MAX

};

🌸 CONSTANTS 🌸

bestie, here's the full roster, no skips, no cuts, we don't do that here 🫢

  • NCSI_CHANNEL_ATTR_UNSPEC β€” the unspecified one, there purely to catch errors 🚨
  • NCSI_CHANNEL_ATTR β€” a nested array of channel attributes, it's giving "attributes inside attributes", very meta πŸ’«
  • NCSI_CHANNEL_ATTR_ID β€” the channel ID, its little nametag 🏷️
  • NCSI_CHANNEL_ATTR_VERSION_MAJOR β€” the channel's major version number, the big number energy πŸ”’
  • NCSI_CHANNEL_ATTR_VERSION_MINOR β€” the channel's minor version number, the humble little sibling ✨
  • NCSI_CHANNEL_ATTR_VERSION_STR β€” the channel version string, the version but fancy and texty πŸŽ€
  • NCSI_CHANNEL_ATTR_LINK_STATE β€” the channel link state flags, waving its little flags around 🚩
  • NCSI_CHANNEL_ATTR_ACTIVE β€” channels rockin' this flag are in the NCSI_CHANNEL_ACTIVE state, main character energy only πŸ‘‘
  • NCSI_CHANNEL_ATTR_FORCED β€” a flag that says "this channel has been set as preferred", it got picked, periodt πŸ’…
  • NCSI_CHANNEL_ATTR_VLAN_LIST β€” a nested array of NCSI_CHANNEL_ATTR_VLAN_IDs, a whole lil list of them 🌈
  • NCSI_CHANNEL_ATTR_VLAN_ID β€” the VLAN ID being filtered on this channel, doing its little filtering job πŸ¦‹
  • __NCSI_CHANNEL_ATTR_AFTER_LAST β€” fr fr the kernel doc just says -- undescribed -- 😭 so like… it's there, it exists, it's the sentinel-ish one after the last real attribute. We simply do not have tea on it πŸ™ˆ
  • NCSI_CHANNEL_ATTR_MAX β€” the highest attribute number, the ceiling, the final boss πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

go read these next, bestie, iykyk:

  • the kernel file ./include/uapi/linux/ncsi.h
  • enum ncsi_nl_commands(9)
  • enum ncsi_nl_attrs(9)
  • enum ncsi_nl_pkg_attrs(9)
ngl the whole NCSI netlink family is a little friend group and this enum is just one member of it β€” go meet the others 🫢

and that's the page!! πŸŽ‰ this beauty lives in ./include/uapi/linux, dated October 2026, and it's filed under enum ncsi_nl_channel_attrs(9). mwah, go forth and parse some attributes πŸ’–πŸ§šβ­

πŸ“¦ where this page comes from