drm_fb_helper_hotplug_event(9)
π drm_fb_helper_hotplug_event(9) π
okay so this is the Kernel API Manual page for drm_fb_helper_hotplug_event, and bestie it is literally the βnew screen just showed up, letβs figure out the vibeβ function. no cap.
πΈ NAME πΈ
drm_fb_helper_hotplug_event β respond to a hotplug notification by probing all the outputs attached to the fb. π
β¨ SYNOPSIS β¨
int drm_fb_helper_hotplug_event (struct drm_fb_helper *fb_helper );
π ARGUMENTS π
fb_helperβ driver-allocated fbdev helper, can beNULL. π yes really,NULLis allowed.
π¦ DESCRIPTION π¦
Scan the connectors attached to the fb_helper and try to put together a setup after notification of a change in output configuration. itβs giving βnew monitor energyβ but make it kernel. β¨
Called at runtime, takes the mode config locks to be able to check/change the modeset configuration.
π¨ real talk: must be run from process context (which usually means either the output polling work or a work item launched from the driverβs hotplug interrupt). donβt be weird about it.
Note that drivers may call this even before calling drm_fb_helper_initial_config but only after drm_fb_helper_init. This allows for a race-free fbcon setup and will make sure that the fbdev emulation will not miss any hotplug events. iconic, honestly. π«Ά
π₯ RETURN π₯
0 on success and a non-zero error code otherwise. periodt. π―
π SEE ALSO π
Kernel file ./drivers/gpu/drm/drm_fb_helper.c, plus the whole fbdev helpers(9) friend group β go read these, iykyk:
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_set_suspend_unlocked(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_gem_is_fb(9)
okay bestie, thatβs the whole page β signing off from ./drivers/gpu/drm, October 2026, on drm_fb_helper_hotplug_event(9). 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