ENUM NCSI_NL_CHANNEL_ATTRS(9)
π 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 theNCSI_CHANNEL_ACTIVEstate, 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 ofNCSI_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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms