drm_mode_is_420(9)
π drm_mode_is_420 π
okay bestie, so this is a page from the Kernel API Manual section 9, and it's about one tiny little function that answers one very specific question: can this videomode do YCBCR420 output or not? that's it. that's the whole gig. no cap. π¦
β¨ SYNOPSIS β¨
bool drm_mode_is_420 (const struct drm_display_info *display , const
struct drm_display_mode *mode );
so it takes two const pointers and hands you back a bool. that's the whole signature, she's not complicated, she just knows what she's about π
π ARGUMENTS π
displayβ the display that's under action rn, like the one being examined. she's the vibe check subject πmodeβ the video mode you want tested. this is the one getting scrutinized, bestie π
πΈ RETURN πΈ
trueβ slay! the mode can be supported inYCBCR420format πfalseβ nope, not this one, the mode can't be supported inYCBCR420format π
literally just a yes-or-no, it's giving simple and iconic β¨
π¦ SEE ALSO π¦
first up, the actual home of this function β the kernel file:
./drivers/gpu/drm/drm_modes.c
and then, omg, the whole friend group π«Ά β every single one of these is (9) and every single one matters, so here's the full squad, no one gets left out:
drm_mode_debug_printmodeline(9)drm_mode_create(9)drm_mode_destroy(9)drm_mode_probed_add(9)drm_analog_tv_mode(9)drm_cvt_mode(9)drm_gtf_mode_complex(9)drm_gtf_mode(9)drm_display_mode_from_videomode(9)drm_display_mode_to_videomode(9)drm_bus_flags_from_videomode(9)of_get_drm_display_mode(9)of_get_drm_panel_display_mode(9)drm_mode_set_name(9)drm_mode_vrefresh(9)drm_mode_get_hv_timing(9)drm_mode_set_crtcinfo(9)drm_mode_copy(9)drm_mode_init(9)drm_mode_duplicate(9)drm_mode_match(9)drm_mode_equal(9)drm_mode_equal_no_clocks(9)drm_mode_equal_no_clocks_no_stereo(9)drm_mode_validate_driver(9)drm_mode_validate_size(9)drm_mode_validate_ycbcr420(9)drm_mode_prune_invalid(9)drm_mode_compare(9)drm_mode_sort(9)drm_connector_list_update(9)drm_mode_parse_command_line_for_connector(9)drm_mode_create_from_cmdline_mode(9)drm_mode_convert_to_umode(9)drm_mode_convert_umode(9)drm_mode_is_420_only(9)drm_mode_is_420_also(9)drm_set_preferred_mode(9)
bestie note:drm_mode_is_420_only(9)anddrm_mode_is_420_also(9)are right there in the list and they are literally the siblings of this function. iykyk π
and that's the page!! π this little gem lives under ./drivers/gpu/drm and it's dated October 2026 β so yeah, mark your calendars bestie, she's coming π β¨ π
π¦ 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