drm_dp_dual_mode_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_dp_dual_mode_read(9)

Okay bestie, so this one lives in the Kernel API Manual β€” it's the kernel's little helper for talking to DP dual mode adaptors. Let's get into it ✨


🌸 NAME 🌸

drm_dp_dual_mode_read β€” literally just "read from the DP dual mode adaptor register(s)" πŸ’– that's the whole vibe

πŸ¦‹ SYNOPSIS πŸ¦‹

ssize_t drm_dp_dual_mode_read (struct i2c_adapter *adapter , u8 offset ,
       void *buffer , size_t size );

πŸŽ€ ARGUMENTS πŸŽ€

  • adapter β€” the I2C adapter for the DDC bus 🚌 no cap, this is the wire you're chatting over
  • offset β€” register offset, aka where in the register map you're pointing πŸ‘‰
  • buffer β€” buffer for return data, the little bucket where the bytes land πŸͺ£
  • size β€” size of the buffer, so nobody overflows anything πŸ™ˆ

✨ DESCRIPTION ✨

Reads size bytes from the DP dual mode adaptor registers starting at offset. That's it, that's the whole function β€” it's giving "reliable friend who does exactly what she says she'll do" energy πŸ‘‘

πŸ”₯ RETURN πŸ”₯

0 on success πŸŽ‰, negative error code on failure 😭 (iykyk, the negative numbers are never the fun ones)

🌈 SEE ALSO 🌈


πŸ’€ real talk: these are all the sibling functions, go read them if you want the full lore β€” the whole friend group ate, fr fr.

That's the page, bestie β€” go forth and read those registers 🫢

Source / version: ./drivers/gpu/drm/display β€” dated October 2026. Slay, see you in the next release πŸ’…βœ¨

πŸ“¦ where this page comes from