fm10k_tlv_attr_put_bool(9)
π fm10k_tlv_attr_put_bool(9) β like, the Kernel API Manual era π
okay bestie, so this is a page from the Kernel API Manual and it's about one (1) tiny little function that is honestly iconic in its simplicity. let's get into it β¨
πΈ NAME πΈ
fm10k_tlv_attr_put_bool β adds a header that's basically saying "this value is "true"" π
π¦ SYNOPSIS π¦
s32 fm10k_tlv_attr_put_bool (u32 *msg , u16 attr_id );
like, that's the whole thing. no cap. π«Ά
β ARGUMENTS β
msgβ a pointer to the message block π (yes, it's a pointer, keep up bestie)attr_idβ the attribute ID π·οΈ
β¨ DESCRIPTION β¨
so here's the vibe check: this function will simply add an attribute header. that's it. that's the whole job. π
and the way it works is genuinely so clever β the fact that the header is even there means the attribute value is true. like, its existence is the message. main character energy fr fr. π
and if the header isn't there? then the value is false. that's it. presence = true, absence = false. periodt. π
the function will return success if you provided it with valid pointers β so like, give it good pointers and it's slay, give it bad ones andβ¦ well, don't. π
π₯ SEE ALSO π₯
the kernel file lives at ./drivers/net/ethernet/intel/fm10k/fm10k_tlv.c β go read it, iykyk π
and here's the whole friend group, all the siblings and cousins of this function, no one left out:
fm10k_tlv_msg_init(9), fm10k_tlv_attr_put_null_string(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_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) π
ngl this whole page came from./drivers/net/ethernet/intel/f...and it's dated October 2026 πΈ and yes, the manpage name it signs off with is stillfm10k_tlv_attr_put_bool(9)β we stanned, we cited, we closed the page. mwah ππ«Ά
π¦ 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