fm10k_tlv_at...ut_le_struct(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 into
  • le_struct β€” Pointer to structure to be written. the actual little endian struct, ready for its moment ✨
  • len β€” Size of le_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