drm_scdc_writeb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 ⭐

  • 0 on 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