drm_panel_add_follower(9)
π drm_panel_add_follower(9) β aka the Kernel API Manual, bestie edition π
okay so picture this: you're a kernel dev, you've got a panel, and you want a little buddy to follow it around. that's what we're doing here. this is drm_panel_add_follower, and she is lowkey the matchmaker of the DRM panel world π
β¨ SYNOPSIS β¨
int drm_panel_add_follower (struct device *follower_dev , struct
drm_panel_follower *follower );
πΈ ARGUMENTS πΈ
follower_devβ thestruct devicefor the follower. yep, that's your little buddy's paperwork πfollowerβ the panel follower descriptor for the follower. the whole personality of the follower lives in here π«Ά
π¦ DESCRIPTION π¦
okay so here's the vibe. a panel follower gets called right after the panel is prepared/enabled, and right before it's unprepared/disabled. she's always in the right place at the right time, no cap β°β¨
her primary intention? powering on an associated touchscreen ππ₯ though ngl she could totally be used for any similar devices too. she's versatile like that.
multiple devices are allowed to follow the same panel β the more the merrier, it's giving group chat energy π
and here's the cute part: if a follower gets added to a panel that's already been prepared/enabled, the follower's prepared/enabled callback is called right away. no waiting around, she gets the invite immediately π
the "panel" property of the follower points to the panel to be followed. that's the whole link-up π«±π«²
β RETURN β
0 or an error code. simple as that.
heads up though:-ENODEVmeans we detected thatfollower_devis not actually following a panel π so the whole thing was kind of a situationship that never happened. the caller may choose to ignore this return value if following a panel is optional β like, no pressure bestie, it's fine, we're fine π
π SEE ALSO π
kernel file ./drivers/gpu/drm/drm_panel.c β drm panel(9), and the whole friend group:
drm_panel_init(9)drm_panel_add(9)drm_panel_remove(9)devm_drm_panel_add(9)drm_panel_prepare(9)drm_panel_unprepare(9)drm_panel_enable(9)drm_panel_disable(9)drm_panel_get_modes(9)drm_panel_get(9)drm_panel_put(9)drm_panel_put_void(9)of_drm_find_panel(9)drm_is_panel_follower(9)drm_panel_remove_follower(9)devm_drm_panel_add_follower(9)drm_panel_of_backlight(9)
and that's the tea ββ¨ this page lives in ./drivers/gpu/drm, dated October 2026 β so mark your calendars, screenshot it, pin it, whatever, because she's iconic and she's not going anywhere πππΈ
π¦ 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