fbnic_tlv_attr_put_string(9)
π fbnic_tlv_attr_put_string(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a lil function called fbnic_tlv_attr_put_string, and honestly? she's a vibe. she takes a string and yeets it into a message. let's get into it β¨
πΈ NAME πΈ
fbnic_tlv_attr_put_string β add a string to a message π
π¦ SYNOPSIS π¦
int fbnic_tlv_attr_put_string (struct fbnic_tlv_msg *msg , u16 attr_id ,
const char *string );
like, look at her. three args, returns an int, does exactly what it says on the tin π
β¨ ARGUMENTS β¨
msgβ the message header we're adding the flag attribute to π«Ά this is the thing getting the glow-upattr_idβ the ID of the flag attribute we're adding to the message, iykyk π·οΈstringβ a byte pointer to a null terminated string that's gonna get stored π₯ that's the payload, the main character
π₯ RETURN π₯
-ENOSPCβ bestie there is literally no room for the attribute π she's full, she can't take it0β otherwise! we slayed, everything's fine, zero means good π
π DESCRIPTION π
so what she does is: adds the header and then copies the data pointed to by string into the message. periodt. π
and here's the lil detail you gotta know β she copies the address raw, so it will be in byte order. no cap, that's just how she rolls π
π SEE ALSO π
the whole friend group, fr fr β go say hi to:
- Kernel file
./drivers/net/ethernet/meta/fbnic/fbnic_tlv.cπ fbnic_tlv_msg_alloc(9)fbnic_tlv_attr_put_flag(9)fbnic_tlv_attr_put_value(9)__fbnic_tlv_attr_put_int(9)fbnic_tlv_attr_put_mac_addr(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)
okay that's the whole page, ily, go forth and put some strings in some messages π§π
signed off with love from ./drivers/net/ethernet/meta/fbnic, dated October 2026 β catch you in the next manpage bestie!! ππ¦π
π¦ 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