nla_put_le16(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ nla_put_le16(9) β€” the Kernel API Manual page you actually want to read πŸ’…

okay so picture this: you're deep in the Kernel API Manual, section 9, and you just need to shove a little-endian 16-bit number into a netlink message. bestie, this is literally that page. no cap. ✨


🌸 NAME 🌸

nla_put_le16 β€” the function that adds a __le16 netlink attribute to a socket buffer πŸŽ€


πŸ’« SYNOPSIS πŸ’«

int nla_put_le16 (struct sk_buff *skb , int attrtype , __le16 value );

that's it, that's the whole call. yes it returns an int, no I'm not gonna lie to you about anything that's not on this page 🫢


🧚 ARGUMENTS 🧚

  • skb β€” the socket buffer you're adding the attribute to. it's the main character here, show it some respect πŸ‘‘
  • attrtype β€” the attribute type. this is how the message knows which attribute you're handing it 🏷️
  • value β€” the numeric value itself. a __le16 of pure potential πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

okay so this list is long long β€” like, the whole netlink friend group showed up to the party. every single one, in order, no cap:

like I said. the whole friend group. πŸ’€


that's the page, bestie β€” go put that __le16 where it belongs πŸ“

sign-off time: this lil beauty lives in ./include/net, and it's dated October 2026. iykyk. slay, bye πŸ’…βœ¨

πŸ“¦ where this page comes from