drm_plane_get_damage_clips(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_plane_get_damage_clips(9) β€” Kernel API Manual, bestie edition πŸŽ€

okay so real talk, this one lives in the Kernel API Manual and it's genuinely one of the cutest little getters in the DRM plane universe. no cap.


✨ NAME ✨

drm_plane_get_damage_clips β€” returns damage clips. that's it. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

struct drm_mode_rect * drm_plane_get_damage_clips (const struct
drm_plane_state *state );

like, look at her. struct drm_mode_rect * on the left, one lil const struct drm_plane_state *state on the right. iconic signature, no notes πŸ’…


🫢 ARGUMENTS 🫢

  • state β€” plane state. literally just the plane state, bestie. that's what she needs, that's what she gets. πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

okay so heads up because this matters: this function returns the uapi type drm_mode_rect. not a kernel-internal struct, the uapi one. iykyk. πŸ‘‘

and here's the lowkey tea β€” if your driver can only handle a single damage region at most (at most, bestie, we're not out here being greedy), you probably don't wanna rawdog this return value. drivers might want to use the helper functions instead:

  • drm_atomic_helper_damage_iter_init
  • drm_atomic_helper_damage_iter_next
  • drm_atomic_helper_damage_merged

like, the iter helpers are right there. use them. they ate. ✨


⭐ RETURN ⭐

damage clips in the plane fb_damage_clips blob property. πŸ’€ that's the whole return, she's not complicated.


🌈 SEE ALSO 🌈

the whole friend group fr fr:


ngl this page came from ./drivers/gpu/drm, dated October 2026, and it's part of the Kernel API Manual. slay, drink water, go read drm_plane.c. πŸ’œπŸ§šβ€β™€οΈ
πŸ“¦ where this page comes from