qmi_decode_string_elem(9)
π qmi_decode_string_elem(9) β like, the Kernel API Manual, section 9, bestie π
okay so we're in the Kernel API Manual, section 9, and today's main character is qmi_decode_string_elem β¨
πΈ NAME πΈ
qmi_decode_string_elem β decodes elements of string data type π§ββοΈ
β SYNOPSIS β
int qmi_decode_string_elem (const struct qmi_elem_info *ei_array , void
*buf_dst , const void *buf_src , u32 tlv_len , int dec_level );
π ARGUMENTS π
ei_arrayβ the struct info array that describes the string element. it's giving "here's the blueprint" π«Άbuf_dstβ the buffer where the decoded element gets stored. destiny buffer fr fr β¨buf_srcβ the buffer holding the elements in QMI wire format. the source of truth πtlv_lenβ total size of the encoded info that corresponds to this string element πdec_levelβ how deep the string element sits from the main structure. nesting vibes πͺ
π¦ DESCRIPTION π¦
okay so this function decodes the string element of maximum length "ei_array->elem_len" from the source buffer "buf_src" and puts it into the destination buffer "buf_dst". no cap. π«
and then β the moment you've been waiting for β it returns the number of bytes decoded from the input buffer π
π₯ RETURN π₯
on success you get the total size of the decoded data elements β¨ on error it's a negative errno π (we don't love that for us, but the info is there)
π SEE ALSO π
Kernel file ./drivers/soc/qcom/qmi_encdec.c β go read it, iykyk π
skip_to_next_elem(9)qmi_calc_min_msg_len(9)qmi_encode_basic_elem(9)qmi_encode_struct_elem(9)qmi_encode_string_elem(9)qmi_encode(9)qmi_decode_basic_elem(9)qmi_decode_struct_elem(9)find_ei(9)qmi_decode(9)qmi_encode_message(9)qmi_decode_message(9)
that's the whole page bestie, every single detail preserved, nothing dropped, we ate and left no crumbs π
and that's a wrap!! sourced from ./drivers/soc/qcom, dated October 2026, page qmi_decode_string_elem(9) β mwah, go decode some strings ππ
π¦ 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