qmi_add_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

qmi_add_lookup β€” register a new lookup with the name service. that’s literally the whole vibe bestie, and this page is qmi_add_lookup(9) from the Kernel API Manual πŸ’…βœ¨


🌸 SYNOPSIS 🌸

int qmi_add_lookup (struct qmi_handle *qmi , unsigned int service ,
       unsigned int version , unsigned int instance );

πŸŽ€ ARGUMENTS πŸŽ€

  • qmi β€” the qmi handle, aka your main character struct pointer 🫢
  • service β€” service id of the request ✨
  • version β€” version number of the request πŸ’–
  • instance β€” instance id of the request πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so real talk: registering a lookup query with the name server will cause the name server to send NEW_SERVER and DEL_SERVER control messages to this socket as matching services are registered. that’s the whole point, and it’s lowkey iconic 🌈


πŸ’– RETURN πŸ’–

0 on success, negative errno on failure. slay when it’s 0, sad girl hours when it’s negative πŸ˜­πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file is ./drivers/soc/qcom/qmi_interface.c, and these are the besties you should also check out:


πŸ’– that’s the page, bestie β€” brought to you from ./drivers/soc/qcom, dated October 2026, and it’s qmi_add_lookup(9) out πŸ’…βœ¨

πŸ“¦ where this page comes from