drm_privacy_...tifier_chain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

drm_privacy_screen_call_notifier_chain β€” bestie, this is the little function that tells everybody the privacy screen changed its vibe ✨ (aka notify consumers of state change)

This page is from the Kernel API Manual, and we're gonna get into it 🫢


🌸 SYNOPSIS 🌸

void drm_privacy_screen_call_notifier_chain (struct drm_privacy_screen *priv );

πŸŽ€ ARGUMENTS πŸŽ€

  • priv β€” the privacy screen you're registering the notifier with πŸ’– (yes, that's literally what it's for)

✨ DESCRIPTION ✨

Okay so picture this: a privacy-screen provider driver can call this function when the privacy-screen state gets changed from the outside. Like, the hardware itself just did its own thing in response to a hotkey press πŸ”₯ β€” main character energy, honestly.

🚨 The one rule, no cap: this function must be called without holding the privacy-screen lock. Not "maybe," not "if you feel like it." Without. Periodt. πŸ’…

Also, the driver has to update sw_state and hw_state so they actually reflect the new state before it calls this function. Don't skip that step, bestie, it's giving necessary πŸ”₯

So here's the expected behavior from the driver when it receives an external state change event β€” follow along, it's a whole sequence πŸŽ€:

  1. Take the lock πŸ”’
  2. Update sw_state and hw_state ✏️
  3. Release the lock πŸ”“
  4. Call drm_privacy_screen_call_notifier_chain πŸ“£

Like yes, in that order. The lock and unlock are bookends and the state update is the filling. Iconic sandwich behavior, truly.


πŸ¦‹ SEE ALSO πŸ¦‹


That's the whole thing, bestie. This lil page lives in ./drivers/gpu/drm and it's dated October 2026 β€” so go forth, call your notifier chain, hold zero locks, and slay πŸŒˆπŸ‘‘πŸ’œ

πŸ“¦ where this page comes from