find_ei(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… find_ei(9) πŸ’…

okay bestie, welcome to the Kernel API Manual page for find_ei β€” it's literally the little helper that finds the element info matching a TLV Type, and we're gonna get into it πŸ’–


✨ NAME ✨

find_ei β€” find the element info that corresponds to a TLV Type, periodt πŸ’…

🌈 SYNOPSIS 🌈

const struct qmi_elem_info * find_ei (const struct qmi_elem_info
*ei_array , u32 type );

πŸŽ€ ARGUMENTS πŸŽ€

  • ei_array β€” the struct info array for the message being decoded ✨
  • type β€” the TLV Type of the element you're searching for πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

okay so every element that got encoded in the QMI message has a type information associated with it β€” that's just how it is, no cap 🫢

and while decoding the QMI message, this function is the one you use to find the struct info for the element that corresponds to the type being decoded. it's giving "where is the matching info bestie" energy, and honestly? iconic πŸ’…

⭐ RETURN ⭐

a pointer to the struct info β€” but only if it's found πŸ‘‘βœ¨

πŸ¦‹ SEE ALSO πŸ¦‹


signing off from the ./drivers/soc/qcom corner, dated October 2026, on the find_ei(9) page β€” mwah, slay, bye bestie πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from