drm_fb_helpe...end_unlocked(9)
π drm_fb_helpe...end_unlocked(9) β like, the Kernel API Manual page, bestie π
okay so we're in the Kernel API Manual and this one is literally called drm_fb_helpe...end_unlocked(9) (yes the title is truncated like that, that's not me being lazy, that's the actual header π). Sit down, hydrate, let's get into it.
β¨ NAME β¨
drm_fb_helper_set_suspend_unlocked β it's a wrapper around fb_set_suspend that also takes the console lock π«Ά
πΈ SYNOPSIS πΈ
void drm_fb_helper_set_suspend_unlocked (struct drm_fb_helper *fb_helper
, bool suspend );
π¦ ARGUMENTS π¦
fb_helperβ the driver-allocated fbdev helper. and yes, it can beNULL, no cap πsuspendβ do we suspend or do we resume, babes? that's the whole vibe check right there
π DESCRIPTION π
So basically this is a wrapper around fb_set_suspend, except it grabs the console lock for you. Iconic behaviour honestly.
Here's the tea though: if the lock isn't available on resume, a worker gets tasked with waiting for the lock to become available. it's giving "I'll circle back when you're free" energy β¨. and why is the lock so busy on resume? because of all the printk activity β the console lock can be pretty contented on resume, like a group chat at 2am π
the good news: this function can be called multiple times with the same state, because fb_info.state gets checked to see if fbdev is running or not before locking. so go off, call it again, it's fine π
one (1) heads up, bestie: use drm_fb_helper_set_suspend if you need to take the lock yourself. don't be out here doing double locking, that's not the move π
π₯ SEE ALSO π₯
Kernel file ./drivers/gpu/drm/drm_fb_helper.c, plus the whole friend group:
fbdev helpers(9)drm_fb_helper_restore_fbdev_mode_unlocked(9)drm_fb_helper_blank(9)drm_fb_helper_prepare(9)drm_fb_helper_unprepare(9)drm_fb_helper_init(9)drm_fb_helper_unregister_info(9)drm_fb_helper_fini(9)drm_fb_helper_deferred_io(9)drm_fb_helper_set_suspend(9)drm_fb_helper_setcmap(9)drm_fb_helper_ioctl(9)drm_fb_helper_check_var(9)drm_fb_helper_set_par(9)drm_fb_helper_pan_display(9)drm_fb_helper_fill_info(9)drm_fb_helper_initial_config(9)drm_fb_helper_hotplug_event(9)drm_fb_helper_gem_is_fb(9)
like, the whole squad showed up. periodt π
β¨ that's the page!! β¨ shoutout to the source dir ./drivers/gpu/drm and the date October 2026 β that's the little footer we're signing off with, 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