ENUM NETLINK_ATTRIBUTE_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 and maxtype inside 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 corresponding maxtype may be specified. lowkey iconic but you gotta read it twice 😭
  • NL_ATTR_TYPE_BITFIELD32 β€” struct nla_bitfield32 attribute ⭐
  • 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