drm_edid_encode_panel_id(9)
π drm_edid_encode_panel_id(9) π
okay bestie so this is a page from the Kernel API Manual and honestly? it's a little one but it slaps. it's all about drm_edid_encode_panel_id, which makes an ID you can match against drm_edid_get_panel_id(). matching era, fr fr π
β¨ NAME β¨
drm_edid_encode_panel_id β Encode an ID for matching against drm_edid_get_panel_id() π¦
π«Ά SYNOPSIS π«Ά
drm_edid_encode_panel_id (vend_chr_0 , vend_chr_1 , vend_chr_2 ,
product_id );
like, that's the whole call. four things in, one little ID out. periodt π
πΈ ARGUMENTS πΈ
vend_chr_0β the first character of the vendor string. yeah, just one character. she's tiny but she matters πvend_chr_1β the second character of the vendor string. the middle child π₯Ίvend_chr_2β the third character of the vendor string. last but never least β¨product_idβ the 16-bit product ID. as in literally 16 bits, no cap π₯
π DESCRIPTION π
so the whole reason this is a macro β and bestie this is the important part β is so it can be calculated at compile time and used as an initializer. that's it. that's the vibe. compile-time girlie π«
for instance, watch this:
drm_edid_encode_panel_id('B', 'O', 'E', 0x2d08) => 0x09e52d08
like. 'B', 'O', 'E' and 0x2d08 walk in, and 0x09e52d08 walks out. ate and left no crumbs ππ₯
β RETURN β
a 32-bit ID per panel. one panel, one ID, main character energy π
π SEE ALSO π
- Kernel file
./include/drm/drm_edid.hβ go read her, she's iconic π drm_edid_decode_mfg_id(9)β the decode counterpart, iykykdrm_edid_decode_panel_id(9)β also the decode counterpart, we love a matched set π«Ά
lowkey a reminder that everything above is exactly what the page says β the macro bit, the compile-time bit, the initializer bit β so don't go adding your own lore to it, bestie π
and that's the whole page!! sourced from ./include/drm, dated October 2026, from the Kernel API Manual β mwah, go forth and encode ππ§ββοΈπΈ
π¦ 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