drm_gtf_mode_complex(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_gtf_mode_complex(9) β€” Kernel API Manual ✨

πŸŽ€ NAME

drm_gtf_mode_complex β€” create the modeline based on the full GTF algorithm πŸ’«

πŸŒ€ SYNOPSIS

okay bestie, here's the exact signature, no cap:

       struct drm_display_mode * drm_gtf_mode_complex (struct drm_device *dev ,
       int hdisplay , int vdisplay , int vrefresh , bool interlaced , int
       margins , int GTF_M , int GTF_2C , int GTF_K , int GTF_2J );

🧚 ARGUMENTS

  • dev β€” drm device πŸ–₯️
  • hdisplay β€” hdisplay size
  • vdisplay β€” vdisplay size
  • vrefresh β€” vrefresh rate.
  • interlaced β€” whether to compute an interlaced mode
  • margins β€” desired margin (borders) size
  • GTF_M β€” extended GTF formula parameters
  • GTF_2C β€” extended GTF formula parameters
  • GTF_K β€” extended GTF formula parameters
  • GTF_2J β€” extended GTF formula parameters

πŸ’… DESCRIPTION

okay so real talk: GTF feature blocks specify C and J in multiples of 0.5, so we pass them in here multiplied by two. For a C of 40, pass in 80. That's the whole tea πŸ«–βœ¨.

🫢 RETURN

The modeline based on the full GTF algorithm, stored in a drm_display_mode object. The display mode object is allocated with drm_mode_create. Returns NULL when no mode could be allocated β€” sad girl hours 😭.

πŸ”₯ SEE ALSO

Kernel file: ./drivers/gpu/drm/drm_modes.c β€” that's where the lore lives πŸ“.

okay the SEE ALSO squad is huge, so buckle up: 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(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_mode_is_420(9), drm_set_preferred_mode(9).

source/version: ./drivers/gpu/drm Β· date: October 2026 Β· manual: drm_gtf_mode_complex(9) β€” mwah πŸ’‹πŸ“

πŸ“¦ where this page comes from