__fbnic_tlv_attr_put_int(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __fbnic_tlv_attr_put_int β€” Kernel API Manual πŸ’–

okay so bestie, welcome to the glow-up era of the <purple>fbnic</purple> TLV helper docs ✨ this one's a kernel API manual page, and the star of the show is literally __fbnic_tlv_attr_put_int β€” the little function that slides an integer into a message for you 🫢


✨ NAME ✨

__fbnic_tlv_attr_put_int β€” add an integer to a message πŸ’…


🌸 SYNOPSIS 🌸

int __fbnic_tlv_attr_put_int (struct fbnic_tlv_msg *msg , const u16
attr_id , s64 value , const int len );

that's the whole signature, no cap β€” copy it exactly, it's iconic as-is πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • msg β€” the message header we're adding the flag attribute to πŸ¦‹
  • attr_id β€” the ID of the flag attribute we're adding to the message 🏷️
  • value β€” the actual data to be stored, the main character of this whole operation πŸ’Ύ
  • len β€” the size of the data to be stored, and it's either 4 or 8 bytes. those are the options, periodt πŸ“

⭐ RETURN ⭐

  • -ENOSPC β€” it's giving "no room, bestie" 😭 there's no space for the attribute.
  • 0 β€” otherwise you're slaying, everything went fine πŸ’–

🌈 DESCRIPTION 🌈

so what it actually does: it adds the header, then copies the data pointed to by value into the message ✨ and it will format that data as little endian β€” that's the vibe, that's the whole job 🧚


πŸ’œ SEE ALSO πŸ’œ

kernel file ./drivers/net/ethernet/meta/fbnic/fbnic_tlv.c β€” the source, the home base 🏠

and the whole friend group, fr fr:


πŸ“ that's the whole page, babes β€” go forth and put integers in messages responsibly πŸ’…

okay so this absolute banger of a page lives in ./drivers/net/ethernet/meta/fbnic, dated October 2026, and it's filed under __fbnic_tlv_attr_put_int(9) β€” mwah, sending you off with a kiss and a clean compile πŸ˜˜πŸ’–βœ¨

πŸ“¦ where this page comes from