drm_panel_add_follower(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the struct device for 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: -ENODEV means we detected that follower_dev is 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:


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