STRUCT DRM_FB_HELPER_FUNCS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct drm_fb_helper_funcs(9) ✨

okay so bestie, welcome to the kernel API manual πŸ’… this one's all about struct drm_fb_helper_funcs β€” and no, that's not a typo, it's literally the driver callbacks for the fbdev emulation library πŸŽ€


🌸 NAME 🌸

struct drm_fb_helper_funcs β€” driver callbacks for the fbdev emulation library πŸ¦‹


✨ SYNOPSIS ✨

lowkey here's the whole struct, character for character, no cap:

struct drm_fb_helper_funcs {
    int (*fb_dirty)(struct drm_fb_helper *helper, struct drm_clip_rect
*clip);
    void (*fb_restore)(struct drm_fb_helper *helper);
    void (*fb_set_suspend)(struct drm_fb_helper *helper, bool suspend);
 };

πŸ‘‘ Members πŸ‘‘

πŸ’– fb_dirty

Driver callback to update the framebuffer memory. If it's set, fbdev emulation will invoke this callback in regular intervals after the framebuffer has been written.

This callback is optional 🫢

Returns: 0 on success, or an error code otherwise.

🌈 fb_restore

Driver callback to restore internal fbdev state. If set, fbdev emulation will invoke this callback after restoring the display mode.

πŸ’€ Only for i915. Do not use in new code.

TODO: Fix i915 to not require this callback πŸ™ˆ

πŸ¦‹ fb_set_suspend

Driver callback to suspend or resume β€” if it's set, fbdev emulation will invoke this callback during suspend and resume. Driver should call fb_set_suspend from their implementation. If it's not set, fbdev emulation will invoke fb_set_suspend directly.

πŸ’€ Only for i915. Do not use in new code.

TODO: Fix i915 to not require this callback πŸ™ˆ


⭐ Description ⭐

Driver callbacks used by the fbdev emulation helper library. that's the whole vibe, honestly ✨


πŸŽ€ SEE ALSO πŸŽ€

  • Kernel file ./include/drm/drm_fb_helper.h πŸ“
  • struct drm_fb_helper_surface_size(9)
  • struct drm_fb_helper(9)
  • DRM_FB_HELPER_DEFAULT_OPS(9)

okay that's the whole page bestie, you ate that 🫢 this came from ./include/drm, dated October 2026, and it's filed under struct drm_fb_helper_funcs(9) β€” periodt πŸ’œπŸ§š

πŸ“¦ where this page comes from