drm_connecto...ode_property(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_connector_attach_scaling_mode_property β€” NAME

okay so bestie, this is the drm_connector_attach_scaling_mode_property page from the Kernel API Manual (yes the fancy kernel docs, we love her) β€” and the whole ~point~ of this function is literally just: attach atomic scaling mode property. That's it, that's the vibe check. πŸŽ€


✨ SYNOPSIS ✨

int drm_connector_attach_scaling_mode_property (struct drm_connector
*connector , u32 scaling_mode_mask );

it's giving "small function, big responsibility" fr fr πŸ’–


🫢 ARGUMENTS

  • connector β€” the connector you're attaching the scaling mode property onto. that's the one, that's the target 🎯
  • scaling_mode_mask β€” an or'ed mask of BIT(DRM_MODE_SCALE_. like, you OR together the BIT(DRM_MODE_SCALE_...) values you want. lowkey just a bitmask of which scaling modes are allowed, no cap ✨

🌸 DESCRIPTION 🌸

so what does she actually do?? this one is used to add support for scaling mode to atomic drivers. iconic behavior honestly πŸ‘‘

the scaling mode gets set to drm_connector_state.scaling_mode, and you can then use it from drm_connector_helper_funcs->atomic_check for validation. so like β€” set it here, validate it there. it's giving teamwork πŸ¦‹

also important: this is the atomic version of drm_mode_create_scaling_mode_property. same energy, atomic flavor πŸ’œ


⭐ RETURN ⭐

  • Zero on success πŸ₯³
  • a negative errno on failure 😭

πŸ”₯ SEE ALSO πŸ”₯

okay bestie buckle up, this list is LONG and she ate every single one πŸ’… no skipping, we keep them all:


and that's the whole page bestie 🫢 sign-off time: this lil beauty lives in ./drivers/gpu/drm, dated October 2026, and she's page drm_connecto...ode_property(9) β€” yes the name is truncated, that's just how she rolls πŸ’€βœ¨ mwah, go attach some scaling modes πŸ’œ

πŸ“¦ where this page comes from