nla_put_le32(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nla_put_le32 β€” Kernel API Manual, section 9 πŸŽ€

okay so bestie, welcome to the nla_put_le32 page from the Kernel API Manual (that's section 9, iykyk) β€” this is the little function that goes "here, have a __le32 netlink attribute" and yeets it onto a socket buffer. it's giving humble but essential. ✨


🌸 NAME 🌸

nla_put_le32 β€” Add a __le32 netlink attribute to a socket buffer. no cap, that's literally the whole job. πŸ’–


✨ SYNOPSIS ✨

int nla_put_le32 (struct sk_buff *skb , int attrtype , __le32 value );

look at her. three args, returns an int, absolutely iconic. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” the socket buffer you're adding the attribute to. this is the canvas, the main character, the place where it all goes down. 🎨
  • attrtype β€” the attribute type. gotta tell everyone what kind of attribute this is, fr fr. 🏷️
  • value β€” the numeric value itself. the actual number. the payload of the whole situation. πŸ”’

🌈 SEE ALSO 🌈

okay this is where it gets unhinged (affectionate) β€” the Kernel file ./include/net/netlink.h and honestly like the entire netlink extended family shows up. everybody's here. the whole group chat. 🫢

like I said. the entire family reunion. πŸ“


lowkey the friendliest way to remember it: there's a putter for basically every type under the sun, and nla_put_le32 is the little-endian 32-bit one. go read the others when you need them bestie, they're all right there. πŸ’œ

and that's the page!! mwah πŸ’‹ β€” brought to you by the source ./include/net, dated October 2026, from the Kernel API Manual, section 9. slay, bye!! πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from