fm10k_tlv_at..._null_string(9)
π fm10k_tlv_attr_put_null_string(9) β a Kernel API Manual moment π
okay so bestie, you're in the Kernel API Manual, and today's main character is fm10k_tlv_attr_put_null_string(9). yes the header is literally just the function name twice, we love a symmetrical queen β¨
πΈ NAME πΈ
fm10k_tlv_attr_put_null_string β places a null terminated string on a message π
the way that's the whole vibe, ngl. it puts a string on a message. periodt.
π¦ SYNOPSIS π¦
s32 fm10k_tlv_attr_put_null_string (u32 *msg , u16 attr_id , const
unsigned char *string );
look at her. three little params, one s32 return type, zero drama π
π ARGUMENTS π
msgβ pointer to the message block, iykyk π«Άattr_idβ the Attribute ID, literally the name tag of this whole operation π·οΈstringβ pointer to the string that's gonna get stored in the attribute β¨
π DESCRIPTION π
so here's the tea: this function reorders a string to be CPU endian and then stores it in the attribute buffer. that's the whole job, and she does it slayfully π
and the return? it will return success if it's provided with a valid pointers. yes bestie, a valid pointers. we're being generous with the grammar today, iconic behavior honestly π
lowkey important: the success-and-valid-pointers thing is the actual contract here β don't come at her with garbage pointers and expect a happy ending π
π§ SEE ALSO π§
the kernel file that hosts all of this gorgeousness:
./drivers/net/ethernet/intel/fm10k/fm10k_tlv.c
and now, the whole friend group π:
fm10k_tlv_msg_init(9)fm10k_tlv_attr_get_null_string(9)fm10k_tlv_attr_put_mac_vlan(9)fm10k_tlv_attr_get_mac_vlan(9)fm10k_tlv_attr_put_bool(9)fm10k_tlv_attr_put_value(9)fm10k_tlv_attr_get_value(9)fm10k_tlv_attr_put_le_struct(9)fm10k_tlv_attr_get_le_struct(9)fm10k_tlv_attr_nest_start(9)fm10k_tlv_attr_nest_stop(9)fm10k_tlv_attr_validate(9)fm10k_tlv_attr_parse(9)fm10k_tlv_msg_parse(9)fm10k_tlv_msg_error(9)fm10k_tlv_msg_test_generate_data(9)fm10k_tlv_msg_test_create(9)fm10k_tlv_msg_test(9)
like, that's a whole squad right there. go read them too, bestie π«Ά
and that's the page!! mwah π sign-off time: this lil masterpiece came from ./drivers/net/ethernet/intel/f... (the source path, she's shy so it's truncated) and it's dated October 2026, and the footer still says fm10k_tlv_at..._null_string(9) because tradition is tradition π
bye bestie, go put some null terminated strings on some messages, you got this ππ π
π¦ 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