drm_eld_size(9)
π drm_eld_size β get ELD size in bytes π
okay so bestie, this is drm_eld_size from the Kernel API Manual, and it's literally the easiest little function to love π«Ά
β¨ NAME β¨
drm_eld_size β Get ELD size in bytes</p> π
that's it, that's the job
πΈ SYNOPSIS πΈ
int drm_eld_size (const u8 *eld );
π ARGUMENTS π
eldβ pointer to a complete eld memory structure β¨ like, a complete one, okay? don't come at it with a half-built struct, she needs the whole vibe
π¦ DESCRIPTION π¦
So the number you get back? It does not include the vendor block, okay π€ that part is vendor specific and it's made up of whatever bytes are left over in the ELD memory buffer after drm_eld_size bytes of header and baseline block. Like the vendor block is the lil bonus content at the end and we're not counting it π
And here's the tea: the returned value is guaranteed to be a multiple of 4 β¨ so don't be out here expecting 7 or 13, it's giving divisible-by-four main character energy π
β SEE ALSO β
- Kernel file
./include/drm/drm_eld.hπ drm_eld_mnl(9)drm_eld_sad(9)drm_eld_sad_count(9)drm_eld_calc_baseline_block_size(9)drm_eld_get_spk_alloc(9)drm_eld_get_conn_type(9)
like the whole ELD friend group fr fr π«Ά go read them all, iykyk π
aaaand that's the page!! this one came out of ./include/drm, version dated October 2026, ngl she's iconic, no cap ππβ¨
π¦ 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