zynqmp_dp_aux_cmd_submit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, you’re on the zynqmp_dp_aux_cmd_submit(9) page of the Kernel API Manual ✨ and it’s literally all about submitting an aux command. Let’s get into it πŸ’…


πŸ’– NAME πŸ’–

zynqmp_dp_aux_cmd_submit β€” Submit aux command πŸŽ€


✨ SYNOPSIS ✨

Here’s the signature, no cap:

int zynqmp_dp_aux_cmd_submit (struct zynqmp_dp *dp , u32 cmd , u16 addr
       , u8 *buf , u8 bytes , u8 *reply );

🫢 ARGUMENTS 🫢

  • dp β€” the DisplayPort IP core structure πŸ’–
  • cmd β€” the aux command
  • addr β€” the aux address
  • buf β€” buffer for command data
  • bytes β€” number of bytes for buf
  • reply β€” reply code to be returned πŸ‘‘

🌈 DESCRIPTION 🌈

Okay so this function submits an aux command. Literally all aux related commands β€” native or i2c aux read/write β€” are submitted through this function. The function is mapped to the transfer function of struct drm_dp_aux. It involves multiple register reads/writes, so synchronization is needed, and that’s done by drm_dp_helper using hw_mutex.

If there’s no immediate reply to the command submission, the calling thread goes into sleep 😴. The reply code is returned at reply if reply != NULL β€” periodt.


πŸ’… RETURN πŸ’…

It gives you 0 if the command is submitted properly, or the corresponding error code:

  • -EBUSY β€” when there is any request already being processed 😭
  • -ETIMEDOUT β€” when receiving reply is timed out πŸ’€
  • -EIO β€” when received bytes are less than requested πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./drivers/gpu/drm/xlnx/zynqmp_dp.c

The whole bestie reference list:


Cute little sign-off: source/version ./drivers/gpu/drm/xlnx, dated October 2026, for zynqmp_dp_aux_cmd_submit(9) πŸ’–πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from