drm_display...to_videomode(9)
π drm_display_mode_to_videomode β Kernel API Manual β¨
okay so bestie, buckle up, we're in the Kernel API Manual today and this one is honestly such a cute little translator function π«Ά
πΈ NAME πΈ
drm_display_mode_to_videomode - fill in @vm using @dmode,
(yes the trailing comma is real, we don't ask questions, we just copy her exactly π )
β¨ SYNOPSIS β¨
void drm_display_mode_to_videomode (const struct drm_display_mode *dmode
, struct videomode *vm );
it's giving "void, takes two pointers, changes your life" π no return value, she just does the thing and dips.
π ARGUMENTS π
dmodeβ thedrm_display_modestructure you're reading from. this is the source, the origin story, the main character πvmβ thevideomodestructure you're writing into. this is the destination, the group chat you're forwarding the message to π
π¦ DESCRIPTION π¦
Fills out vm using the display mode specified in dmode.
that's it. that's the whole vibe. she takes what's in dmode and pours it into vm so the videomode girlies can understand it too. no cap, no extra steps, no drama π
lowkey obsessed with how simple this is. one job. she does it. periodt β¨
π₯ SEE ALSO π₯
the whole friend group, fr fr β go say hi to all of them:
- Kernel file
./drivers/gpu/drm/drm_modes.c 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_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_mode_is_420(9)drm_set_preferred_mode(9)
and that's the page, bestie!! π this gem lives in ./drivers/gpu/drm, it's the October 2026 edition of the Kernel API Manual, and honestly? she ate π
π go forth and convert your display modes, iykyk π§β¨
π¦ 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