drm_dsc_dp_rc_buffer_size(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… drm_dsc_dp_rc_buffer_size(9) โ€” from the Kernel API Manual, bestie ๐ŸŽ€

okay so picture this: you're deep in the DRM DSC helpers, you've got a DisplayPort config staring at you, and you just need to know how many bytes your rc buffer is. That's the whole gig. Getting the rc buffer size, in bytes. That's it. That's the function. โœจ


โœจ SYNOPSIS โœจ

int drm_dsc_dp_rc_buffer_size (u8 rc_buffer_block_size , u8 rc_buffer_size );

Two u8s in, one int out. Simple. Clean. Iconic. ๐Ÿซถ


๐ŸŒธ ARGUMENTS ๐ŸŒธ

  • rc_buffer_block_size โ€” the block size code, straight from DPCD offset 62h ๐Ÿ“ like that's literally where it lives, no cap
  • rc_buffer_size โ€” the number of blocks minus 1, per DPCD offset 63h ๐Ÿงฎ (yes, minus one, they're built different like that)

๐Ÿ’– RETURN ๐Ÿ’–

It gives you the buffer size in bytes ๐ŸŽ‰ โ€” or 0 on invalid input, because sometimes the vibe check does not pass and you get nothing back ๐Ÿ˜ญ๐Ÿ’€


๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

fr fr the whole friend group is listed, go read them all ๐Ÿ’…


ngl this one's short and sweet โ€” but remember it returns 0 when the input doesn't make sense, so don't go treating that zero like a real buffer size ๐Ÿ™ˆ

alright bestie that's the whole page ๐Ÿ’– it lives over in ./drivers/gpu/drm/display, and this little gem is dated October 2026 โญ mwah, go slay your DSC config ๐Ÿงšโ€โ™€๏ธ๐Ÿ’…

๐Ÿ“ฆ where this page comes from