ENUM NETLINK_ATTRIBUTE_TYPE(9)
πΈ NAME
okay so this is enum netlink_attribute_type from the Kernel API Manual β literally the type of an attribute. that's the whole vibe bestie π
β¨ SYNOPSIS
enum netlink_attribute_type {
NL_ATTR_TYPE_INVALID ,
NL_ATTR_TYPE_FLAG ,
NL_ATTR_TYPE_U8 ,
NL_ATTR_TYPE_U16 ,
NL_ATTR_TYPE_U32 ,
NL_ATTR_TYPE_U64 ,
NL_ATTR_TYPE_S8 ,
NL_ATTR_TYPE_S16 ,
NL_ATTR_TYPE_S32 ,
NL_ATTR_TYPE_S64 ,
NL_ATTR_TYPE_BINARY ,
NL_ATTR_TYPE_STRING ,
NL_ATTR_TYPE_NUL_STRING ,
NL_ATTR_TYPE_NESTED ,
NL_ATTR_TYPE_NESTED_ARRAY ,
NL_ATTR_TYPE_BITFIELD32 ,
NL_ATTR_TYPE_SINT ,
NL_ATTR_TYPE_UINT
};
π Constants
NL_ATTR_TYPE_INVALIDβ unused. literally the βno thoughts, head emptyβ option πNL_ATTR_TYPE_FLAGβ flag attribute, as in present/not present. she's either there or she's not πNL_ATTR_TYPE_U8β 8-bit unsigned attribute β¨NL_ATTR_TYPE_U16β 16-bit unsigned attribute β¨NL_ATTR_TYPE_U32β 32-bit unsigned attribute β¨NL_ATTR_TYPE_U64β 64-bit unsigned attribute β¨NL_ATTR_TYPE_S8β 8-bit signed attribute πNL_ATTR_TYPE_S16β 16-bit signed attribute πNL_ATTR_TYPE_S32β 32-bit signed attribute πNL_ATTR_TYPE_S64β 64-bit signed attribute πNL_ATTR_TYPE_BINARYβ binary data; min/max length may be specified π§NL_ATTR_TYPE_STRINGβ string; min/max length may be specified πΈNL_ATTR_TYPE_NUL_STRINGβ NUL-terminated string; min/max length may be specified π¦NL_ATTR_TYPE_NESTEDβ nested, i.e. the content of this attribute consists of sub-attributes. The nested policy andmaxtypeinside may be specified. it's giving attribute-ception πNL_ATTR_TYPE_NESTED_ARRAYβ nested array, i.e. the content of this attribute contains sub-attributes whose type is irrelevant (just used to separate the array entries) and each such array entry has attributes again; the policy for those inner ones and the correspondingmaxtypemay be specified. lowkey iconic but you gotta read it twice πNL_ATTR_TYPE_BITFIELD32βstruct nla_bitfield32attribute βNL_ATTR_TYPE_SINTβ 32-bit or 64-bit signed attribute, aligned to 4B π₯NL_ATTR_TYPE_UINTβ 32-bit or 64-bit unsigned attribute, aligned to 4B π₯
π¦ SEE ALSO
Kernel file ./include/uapi/linux/netlink.h and these besties: struct nlmsghdr(9), enum nlmsgerr_attrs(9), enum netlink_policy_type_attr(9) π«Ά
mwah π this page is from ./include/uapi/linux, dated October 2026, and it's the enum netlink_attribute_type(9) manual page. bye bestie, go slay some netlink attrs πβ¨
π¦ 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