drm_dp_dual_mode_read(9)
π 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 overoffsetβ 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 π
- Kernel file
./drivers/gpu/drm/display/drm_dp_dual_mode_helper.cβ dp dual mode helpers(9) π§ drm_dp_dual_mode_write(9)βοΈdrm_dp_dual_mode_detect(9)πdrm_dp_dual_mode_max_tmds_clock(9)β°drm_dp_dual_mode_get_tmds_output(9)π₯drm_dp_dual_mode_set_tmds_output(9)π€drm_dp_get_dual_mode_type_name(9)π·οΈdrm_lspcon_get_mode(9)ποΈdrm_lspcon_set_mode(9)ποΈ
π 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
- 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