drm_connecto...een_provider(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

drm_connector_attach_privacy_screen_provider β€” attach a privacy-screen to the connector 🫢

okay so hi bestie, welcome to the Kernel API Manual β€” this is the page for drm_connector_attach_privacy_screen_provider, and it's literally the glow-up your connector needed: it's all about giving a DRM connector its very own privacy-screen ✨ (yes, the "can anyone see my screen rn" kind, iconic behavior honestly πŸ’…).


🌸 SYNOPSIS 🌸

void drm_connector_attach_privacy_screen_provider (struct drm_connector
*connector , struct drm_privacy_screen *priv );

like, that's the whole signature. two pointers, zero drama, one void return because we're not about to hand you a status code, we trust you πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • connector β€” the connector you're slapping the privacy-screen onto. this is the one getting the glow-up ✨
  • priv β€” the drm_privacy_screen you're attaching. this is the actual privacy-screen object, main character energy πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's what it does, no cap: it creates and attaches the standard privacy-screen properties, and it registers a generic notifier that fires off sysfs-connector-status-events whenever the privacy-screen status changes from the outside world πŸ”₯ (like, externally. somebody else changes it. not you. and the notifier's job is to make sure everyone hears about it fr fr).

And now the part you actually need to remember, bestie, because it's giving ownership transfer 😭:

This function takes ownership of the passed in drm_privacy_screen and will call drm_privacy_screen_put on it when the connector is destroyed. so like… yeah, you handed it over. it's not yours anymore. it cleans up after itself, you don't double-free, everybody slays πŸ’€βœ¨

🌈 SEE ALSO 🌈

the reading list is long and honestly iconic β€” every one of these is a sibling page, go say hi πŸ‘‹


bestie you made it to the end 🧚 that's the whole page, and it comes straight out of ./drivers/gpu/drm, stamped October 2026 β€” go forth and attach your privacy-screens responsibly, mwah πŸ’œπŸ“

πŸ“¦ where this page comes from