vmw_guess_mode_timing(9)
β¨ vmw_guess_mode_timing β¨
okay so this is a page from the Kernel API Manual, and bestie, it's a tiny one but it's lowkey iconic π
it lives in the land of vmwgfx (that's the VMware graphics driver squad, iykyk) and it does exactly one thing: it makes up timing numbers for a 60Hz mode π
πΈ NAME πΈ
vmw_guess_mode_timing β provides fake timings for a 60Hz vrefresh mode π«Ά
like, not "fake" in a shady way!! it's just guessing the timings instead of you having to fill them in. main character energy tbh π
β¨ SYNOPSIS β¨
void vmw_guess_mode_timing (struct drm_display_mode *mode );
that's it. one function, one argument, zero drama π
π¦ ARGUMENTS π¦
modeβ a pointer to astruct drm_display_modewhere you've already filled in thehdisplayandvdisplaymembers π that's the whole vibe check here β if those two aren't set, this function has nothing to work with, so fill them in first, okay?? no cap π
π SEE ALSO π
first up, the kernel file this thing actually lives in:
- Kernel file
./drivers/gpu/drm/vmwgfx/vmwgfx_kms.cπ
and then, bestie, the whole friend group π the entire vmwgfx KMS/DU extended universe, all of it, in order:
vmw_du_plane_unpin_surf(9)vmw_du_plane_cleanup_fb(9)vmw_du_primary_plane_atomic_check(9)vmw_du_crtc_duplicate_state(9)vmw_du_crtc_reset(9)vmw_du_crtc_destroy_state(9)vmw_du_plane_duplicate_state(9)vmw_du_plane_reset(9)vmw_du_plane_destroy_state(9)vmw_du_connector_duplicate_state(9)vmw_du_connector_reset(9)vmw_du_connector_destroy_state(9)vmw_kms_readback(9)vmw_kms_srf_ok(9)vmw_kms_new_framebuffer(9)vmw_kms_check_display_memory(9)vmw_crtc_state_and_lock(9)vmw_kms_check_implicit(9)vmw_kms_check_topology(9)vmw_kms_atomic_check_modeset(9)vmw_du_update_layout(9)vmw_kms_update_layout_ioctl(9)vmw_kms_helper_dirty(9)vmw_kms_helper_validation_finish(9)vmw_kms_create_implicit_placement_property(9)vmw_kms_suspend(9)vmw_kms_resume(9)vmw_kms_lost_device(9)vmw_du_helper_plane_update(9)vmw_connector_mode_valid(9)vmw_connector_get_modes(9)
thirty-one references, one little timing-guesser. the way that this function has more mutuals than it has lines of code ππ
ngl bestie, always check yourmodepointer before you pass it β this page says it points to astruct drm_display_mode, and it does not say what happens if you hand it something else. respect the signature π
and that's the whole page, short and sweet like a good group chat message π mwah π
sign-off time: this one came out of ./drivers/gpu/drm/vmwgfx, stamped October 2026 β put it in the scrapbook, it's a keeper π§ββοΈβπ
π¦ 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