fm10k_tlv_attr_put_mac_vlan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fm10k_tlv_attr_put_mac_vlan β€” NAME 🌸

okay so bestie, welcome to the Kernel API Manual β€” this one's about fm10k_tlv_attr_put_mac_vlan, which (deep breath, it's giving very descriptive) stores a MAC/VLAN attribute in a message. that's it. that's the whole vibe. πŸ’–


✨ SYNOPSIS ✨

s32 fm10k_tlv_attr_put_mac_vlan (u32 *msg , u16 attr_id , const u8
*mac_addr , u16 vlan );

like, she takes four things and returns a s32. main character signature, honestly. πŸŽ€


🫢 ARGUMENTS 🫢

  • msg β€” pointer to the message block πŸ¦‹
  • attr_id β€” the attribute ID, i.e. her little name tag
  • mac_addr β€” the MAC address that's gonna get stored
  • vlan β€” the VLAN that's gonna get stored

no cap, that's all four. slay. πŸ’…


🌈 DESCRIPTION 🌈

so what she actually does: this function reorders the MAC address to be CPU endian and then stores it in the attribute buffer. she's out here fixing your byte order for you, lowkey iconic behavior tbh. πŸ”₯

and she'll return success if provided with valid pointers β€” so like, give her good pointers and she's happy. give her nonsense and, well, that's on you bestie. 😭

fr fr though: valid pointers are the whole deal here. that's the contract. don't be weird about it. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file herself lives at ./drivers/net/ethernet/intel/fm10k/fm10k_tlv.c β€” go say hi 🧚

and here's the whole friend group, all of them, every single one, no skips:

fm10k_tlv_msg_init(9), fm10k_tlv_attr_put_null_string(9), fm10k_tlv_attr_get_null_string(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)


and that's the page!! πŸŽ€ source is ./drivers/net/ethernet/intel/f..., dated October 2026, and yes she's still fm10k_tlv_attr_put_mac_vlan(9) at the bottom, periodt. β­πŸ’œ

πŸ“¦ where this page comes from