fbnic_tlv_attr_put_string(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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-up
  • attr_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 it
  • 0 β€” 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:


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