fm10k_tlv_at...ut_le_struct(9)
π fm10k_tlv_at...ut_le_struct β Kernel API Manual, bestie edition β¨
okay so picture this: you're deep in the kernel, you've got a message block, and you need a little endian struct to live inside one of its attributes. that's literally this function. welcome π«Ά
πΈ NAME πΈ
fm10k_tlv_attr_put_le_struct β Store little endian structure in message π
no fr that's the whole gig. it puts a le struct in a message. slay.
β SYNOPSIS β
s32 fm10k_tlv_attr_put_le_struct (u32 *msg , u16 attr_id , const void
*le_struct , u32 len );
she takes four things and gives you back an s32. iconic signature tbh π
π ARGUMENTS π
msgβ Pointer to message block. like, the message block itself. the whole vibe container π¦attr_idβ Attribute ID. this is the label on the lil attribute drawer you're stuffing your struct intole_structβ Pointer to structure to be written. the actual little endian struct, ready for its moment β¨lenβ Size ofle_struct. how much of the thing we're writing. keep reading, there's a catch π
π₯ DESCRIPTION π₯
This function will place a little endian structure value in a message attribute. periodt π
The function will return success provided that all pointers are valid and len is a non-zero multiple of 4.
okay so lowkey the vibe check here is real: every pointer has to be valid (no nulls, bestie, i'm begging) and len has to be nonzero and a multiple of 4. miss any of those and no success for you π it's giving "read the requirements before you ship" energy.
π SEE ALSO π
Kernel file ./drivers/net/ethernet/intel/fm10k/fm10k_tlv.c β the home base, the mothership, the source of truth π§
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_bool(9), fm10k_tlv_attr_put_value(9), fm10k_tlv_attr_get_value(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)
that's the whole friend group, go say hi to all of them, they're all icons ππ
and that's the page, bestie π β brought to you from ./drivers/net/ethernet/intel/f..., dated October 2026, filed under fm10k_tlv_at...ut_le_struct(9). 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