__fbnic_tlv_attr_put_int(9)
π __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 either4or8bytes. 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:
fbnic_tlv_msg_alloc(9)fbnic_tlv_attr_put_flag(9)fbnic_tlv_attr_put_value(9)fbnic_tlv_attr_put_mac_addr(9)fbnic_tlv_attr_put_string(9)fbnic_tlv_attr_get_unsigned(9)fbnic_tlv_attr_get_signed(9)fbnic_tlv_attr_get_string(9)fbnic_tlv_attr_nest_start(9)fbnic_tlv_attr_nest_stop(9)fbnic_tlv_attr_parse_array(9)fbnic_tlv_attr_parse(9)fbnic_tlv_msg_parse(9)fbnic_tlv_parser_error(9)fbnic_tlv_test_create(9)fbnic_tlv_parser_test_attr(9)fbnic_tlv_parser_test(9)
π 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
- 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