drm_mode_cre...n_properties(9)
π drm_mode_create_tv_margin_properties(9) β Kernel API Manual π
okay so bestie, we're in the Kernel API Manual today and the star of the show is drm_mode_create_tv_margin_properties(9) β say that five times fast, i literally dare you π. anyway she's iconic, she's niche, she makes TV margins exist, let's get into it β¨
πΈ NAME πΈ
drm_mode_create_tv_margin_properties β create TV connector margin properties π«Ά
like. the whole job. creating margin properties for TV connectors. no cap.
π¦ SYNOPSIS π¦
int drm_mode_create_tv_margin_properties (struct drm_device *dev );
that's her signature. that's the whole vibe. int in, int out, one struct drm_device *dev and we're done π
π ARGUMENTS π
devβ the DRM device π that's it. that's the whole argument list. the DRM device in question, the main character of this operation π
β¨ DESCRIPTION β¨
okay so picture this: a driver's HDMI connector initialization routine is doing its little routine (as one does), and it calls this function to create the TV margin properties for a given device π that's literally the whole thing, and honestly? she ate.
but here's the part where you need to pay attention bestie, because this is a do not do the extra work situation:
no need to call this function for an SDTV connector π it's already called from drm_mode_create_tv_properties_legacy π so like, it's handled. it's giving "someone already brought a gift to the party, don't show up with a second one." don't double-dip. don't be that driver. π
β RETURN β
0on success π₯³ slay- a negative error code on failure π not slay, but at least you'll know
π SEE ALSO π
okay this list is long long, but i refuse to leave a single one of these out because every single one of them is somebody's fave. buckle up buttercup, we're going on a tour π
- Kernel file
./drivers/gpu/drm/drm_connector.coverview(9) drm_get_connector_type_name(9)drm_connector_get_cmdline_mode(9)drm_connector_init(9)drm_connector_dynamic_init(9)drm_connector_init_with_ddc(9)drmm_connector_init(9)drmm_connector_hdmi_init(9)drm_connector_attach_edid_property(9)drm_connector_attach_encoder(9)drm_connector_has_possible_encoder(9)drm_connector_cec_phys_addr_invalidate(9)drm_connector_cec_phys_addr_set(9)drm_connector_cleanup(9)drm_connector_register(9)drm_connector_dynamic_register(9)drm_connector_unregister(9)drm_get_connector_status_name(9)drm_get_connector_force_name(9)drm_connector_list_iter_begin(9)drm_connector_list_iter_next(9)drm_connector_list_iter_end(9)drm_get_subpixel_order_name(9)drm_display_info_set_bus_formats(9)drm_get_tv_mode_from_name(9)drm_get_colorspace_name(9)- standard connector properties(9)
drm_mode_create_dvi_i_properties(9)drm_connector_attach_dp_subconnector_property(9)- HDMI connector properties(9)
- Analog TV Connector Properties(9)
drm_connector_attach_content_type_property(9)drm_connector_attach_tv_margin_properties(9)drm_mode_create_tv_properties_legacy(9)drm_mode_create_tv_properties(9)drm_mode_create_scaling_mode_property(9)- Variable refresh properties(9)
drm_connector_attach_vrr_capable_property(9)drm_connector_attach_scaling_mode_property(9)drm_mode_create_aspect_ratio_property(9)- standard connector properties(9)
drm_mode_create_hdmi_colorspace_property(9)drm_mode_create_dp_colorspace_property(9)drm_mode_create_content_type_property(9)drm_mode_create_suggested_offset_properties(9)drm_connector_set_path_property(9)drm_connector_set_tile_property(9)drm_connector_set_link_status_property(9)drm_connector_attach_max_bpc_property(9)drm_connector_attach_hdr_output_metadata_property(9)drm_connector_attach_broadcast_rgb_property(9)drm_connector_attach_colorspace_property(9)- Color format(9)
drm_connector_attach_color_format_property(9)drm_connector_atomic_hdr_metadata_equal(9)drm_connector_set_vrr_capable_property(9)drm_connector_set_panel_orientation(9)drm_connector_set_panel_orientation_with_quirk(9)drm_connector_set_orientation_from_panel(9)drm_connector_create_privacy_screen_properties(9)drm_connector_attach_privacy_screen_properties(9)drm_connector_attach_privacy_screen_provider(9)drm_connector_update_privacy_screen(9)drm_connector_find_by_fwnode(9)drm_connector_oob_hotplug_event(9)drm_connector_get_color_format(9)- Tile group(9)
drm_mode_put_tile_group(9)drm_mode_get_tile_group(9)drm_mode_create_tile_group(9)drm_connector_attach_panel_type_property(9)
iykyk π
(and yes, standard connector properties(9) really does show up twice in there β we don't gatekeep, we don't edit, we list. periodt. π)
and that's the page, bestie π§π this little angel lives over in ./drivers/gpu/drm, dated October 2026, and she goes by drm_mode_cre...n_properties(9) when she's being fancy at the top of the page π go forth and create those margins, and remember: not for SDTV, it's already handled πΈπ«Ά
π¦ 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