fm10k_tlv_attr_put_mac_vlan(9)
π
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 tagmac_addrβ the MAC address that's gonna get storedvlanβ 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
- 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