drm_atomic_helper_dirtyfb(9)
π drm_atomic_helper_dirtyfb(9) β Kernel API Manual π
okay so bestie, we're in the Kernel API Manual today and the star of the show is drm_atomic_helper_dirtyfb. she's a helper. she does dirtyfb. that's the whole vibe. let's get into it β¨
β¨ NAME β¨
drm_atomic_helper_dirtyfb β literally the helper for dirtyfb. that's it. that's her whole job description and she's slaying it π
π¦ SYNOPSIS π¦
int drm_atomic_helper_dirtyfb (struct drm_framebuffer *fb , struct
drm_file *file_priv , unsigned int flags , unsigned int color , struct
drm_clip_rect *clips , unsigned int num_clips );
six arguments, one int coming back at you. iconic signature, no notes π«Ά
πΈ ARGUMENTS πΈ
fbβ the DRM framebuffer, aka the main character πfile_privβ the DRM file for the ioctl call. she's the receipts π§Ύflagsβ dirty fb annotate flags πcolorβ color for the annotate fill π¨clipsβ the dirty region, spill the tea about which bits changed πnum_clipsβ count of clip inclips. yes, keep track bestie π’
π₯ DESCRIPTION π₯
so this is a helper to implement drm_framebuffer_funcs.dirty using the damage interface during plane update. ngl that's a lot of words, but it means: you hand her the damage info and she handles the dirty-ing for you π
here's the important bit β if num_clips is 0, then this helper will do a full plane update. and this is the same behaviour expected by the DIRTFB IOCTL, so like, no surprises, fr fr β¨
also note, this helper is a blocking implementation π¨ that's not a bug, that's the point. this is what current drivers and userspace expect in their DIRTFB IOCTL implementation, as a way to rate-limit userspace and make sure its rendering doesn't get ahead of uploading new data too much. she's literally holding the line so nobody sprints ahead ππ
β RETURN β
- zero on success π slay
- negative
errnoon failure π it's giving error vibes
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_damage_helper.c drm_atomic_helper_check_plane_damage(9)drm_atomic_helper_damage_iter_init(9)drm_atomic_helper_damage_iter_next(9)drm_atomic_helper_damage_merged(9)
go read those next, they're all in the same friend group π«Ά
and that's the whole page bestie!! π this absolute queen lives at ./drivers/gpu/drm, dated October 2026, and yes, this is the drm_atomic_helper_dirtyfb(9) manual. mwah πβ¨
π¦ 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