drm_scdc_writeb(9)
π drm_scdc_writeb (9) β the kernel API manual, but make it make sense
okay so bestie, welcome to drm_scdc_writeb(9), a lil function living in the Kernel API Manual. it's short, it's sweet, and honestly it's giving "one job, does it well" energy. let's get into it π«Ά
β¨ NAME β¨
drm_scdc_writeb β write a single byte to SCDC. that's it. that's the whole gig. one byte, no cap. π
πΈ SYNOPSIS πΈ
int drm_scdc_writeb (struct i2c_adapter *adapter , u8 offset , u8 value
);
like look at it. three params. returns an int. she's compact, she's iconic, she's literally right there. β¨
π¦ ARGUMENTS π¦
adapterβ the I2C adapter. yes queen, that's the bus you're talking through πoffsetβ offset of register to read π (that's what the manpage says, and we're keeping it, okay? the docs said what the docs said π)valueβ return location for the register value. again, that's the official wording, we do not editorialize, we simply relay π
ngl those last two descriptions are kind of unserious for a write function, but bestie we do not rewrite the facts. we copy them exactly and we move on. π
π DESCRIPTION π
so what does it DO. it writes a single byte to SCDC. one (1) byte. that's the whole vibe. π
and lowkey the best part? this is a convenience wrapper around the drm_scdc_write function. so she's not out here doing the heavy lifting herself β she's the cute lil front desk that hands your byte off to the actual workhorse. main character energy by delegation, honestly π
β RETURN β
0on success π slay- a negative error code on failure π not slay
fr fr that's the whole return contract. zero means we ate, negative means something went sideways. periodt.
π₯ SEE ALSO π₯
- Kernel file
./include/drm/display/drm_scdc_helper.hβ go read the header bestie, that's where the lore lives π drm_scdc_readb(9)β the read counterpart, the sibling, the other half of the duo π«Ά
reminder bestie: every flag, number, path and name above is verbatim from the real page. the vibes are mine, the facts are the kernel's. no inventing, no guessing, no "well I assume it probablyβ" nope. π
okay and finally, the cute lil sign-off: this page comes from ./include/drm/display, dated October 2026, and yes it's filed under drm_scdc_writeb(9) β same as the header, same as the footer, consistent queen. go write your byte, bestie ππβ¨
π¦ 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