fm10k_tlv_attr_put_bool(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 still fm10k_tlv_attr_put_bool(9) β€” we stanned, we cited, we closed the page. mwah πŸ’‹πŸ«Ά
πŸ“¦ where this page comes from