drm_dsc_dp_rc_buffer_size(9)
๐ 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 caprc_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 ๐
- Kernel file
./drivers/gpu/drm/display/drm_dsc_helper.cโ the whole dsc helpers crew,dsc helpers(9)๐ฆ drm_dsc_dp_pps_header_init(9)โญdrm_dsc_pps_payload_pack(9)๐drm_dsc_set_const_params(9)๐drm_dsc_set_rc_buf_thresh(9)๐drm_dsc_setup_rc_params(9)๐งdrm_dsc_compute_rc_parameters(9)๐ฅdrm_dsc_get_bpp_int(9)๐ธdrm_dsc_initial_scale_value(9)โจdrm_dsc_flatness_det_thresh(9)๐drm_dsc_dump_config(9)๐
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
- 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