STRUCT DRM_CONNECTOR_LIST_ITER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct drm_connector_list_iter(9) πŸ’…

okay so this is a page from the Kernel API Manual, bestie β€” sit down, hydrate, and let's talk about the connector_list iterator ✨


🌸 NAME 🌸

struct drm_connector_list_iter β€” the connector_list iterator, literally what it says on the tin πŸŽ€


✨ SYNOPSIS ✨

struct drm_connector_list_iter {
 };

yep. that's the whole struct. it's giving "empty on purpose, the vibe is the point" πŸ¦‹


πŸŽ€ Members πŸŽ€

nothing here, bestie β€” no members listed, it's an empty struct up there and we're not gonna pretend otherwise πŸ’€


πŸ’– Description πŸ’–

okay so the tea β˜• β€” this iterator tracks all the state it needs so you can walk the connector_list inside struct drm_mode_config. that's its whole job. main character energy but make it traversal πŸ‘‘

Only use it together with drm_connector_list_iter_begin, drm_connector_list_iter_end and drm_connector_list_iter_next β€” respectively β€” or with the convenience macro drm_for_each_connector_iter. they're a package deal, iykyk 🫢

🚨 BIG note, don't skip this one: the return value of drm_connector_list_iter_next is only valid up to the next drm_connector_list_iter_next or drm_connector_list_iter_end call. like, it expires. fast. if you want to use the connector later, then you need to grab your own reference first using drm_connector_get. no cap πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./include/drm/drm_connector.h and like, the entire extended friend group πŸ’œ

  • enum drm_connector_status(9)
  • enum drm_connector_registration_state(9)
  • enum drm_connector_tv_mode(9)
  • struct drm_scrambling(9)
  • struct drm_hdmi_dsc_cap(9)
  • struct drm_hdmi_info(9)
  • enum drm_link_status(9)
  • enum drm_panel_orientation(9)
  • enum drm_hdmi_broadcast_rgb(9)
  • struct drm_monitor_range_info(9)
  • struct drm_luminance_range_info(9)
  • enum drm_privacy_screen_status(9)
  • enum drm_colorspace(9)
  • enum drm_output_color_format(9)
  • enum drm_connector_color_format(9)
  • enum drm_bus_flags(9)
  • struct drm_amd_vsdb_info(9)
  • struct drm_display_info(9)
  • struct drm_connector_tv_margins(9)
  • struct drm_tv_connector_state(9)
  • struct drm_connector_hdmi_infoframe(9)
  • struct drm_connector_state(9)
  • struct drm_connector_cec_funcs(9)
  • struct drm_connector_infoframe_funcs(9)
  • struct drm_connector_hdmi_funcs(9)
  • struct drm_connector_funcs(9)
  • struct drm_cmdline_mode(9)
  • struct drm_connector_hdmi_audio(9)
  • struct drm_connector_cec(9)
  • struct drm_connector(9)
  • drm_connector_lookup(9)
  • drm_connector_get(9)
  • drm_connector_put(9)
  • drm_connector_is_unregistered(9)
  • struct drm_tile_group(9)
  • drm_for_each_connector_iter(9)
  • drm_connector_for_each_possible_encoder(9)

and that's the page, bestie πŸ“ it lives in ./include/drm, dated October 2026, and yeah β€” that's the whole struct drm_connector_list_iter(9) moment. slay, iterate responsibly, and don't let your references expire πŸ’…βœ¨πŸ‘‘

πŸ“¦ where this page comes from