STRUCT DRM_PRIVACY_SCREEN(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct drm_privacy_screen(9) β€” the central privacy-screen glow-up πŸ’–

okay so bestie, this is a page from the Kernel API Manual, and honestly? it's giving "backstage pass to the privacy screen club" ✨ buckle up πŸŽ€


🌸 NAME 🌸

struct drm_privacy_screen β€” the central privacy-screen structure, aka the main character πŸ‘‘


✨ SYNOPSIS ✨

struct drm_privacy_screen {
    struct device dev;
    struct mutex lock;
    struct list_head list;
    struct blocking_notifier_head notifier_head;
    const struct drm_privacy_screen_ops *ops;
    enum drm_privacy_screen_status sw_state;
    enum drm_privacy_screen_status hw_state;
    void *drvdata;
 };

no cap, that's the whole struct πŸ’…


🫢 Members 🫢

  • dev β€” the device used to register the privacy-screen in sysfs. it's literally the screen's official ID card πŸͺͺ
  • lock β€” a mutex that protects all the fields in this struct. every single one. don't skip it, fr fr πŸ”’
  • list β€” the privacy-screen devices list list-entry. yep, "list list-entry", iconic phrasing, we keep it πŸŽ€
  • notifier_head β€” the privacy-screen notifier head. it's the one who tells everyone what's up πŸ“£
  • ops β€” the struct drm_privacy_screen_ops for this privacy-screen. heads up: this is NULL if the driver has unregistered the privacy-screen πŸ‘€ (so like, if it's NULL, the driver said bye)
  • sw_state β€” the privacy-screen's software state. see :ref:Standard Connector Properties<standard_connector_properties>`` for more info πŸ’»
  • hw_state β€” the privacy-screen's hardware state. see :ref:Standard Connector Properties<standard_connector_properties>`` for more info πŸ”§
  • drvdata β€” private data owned by the privacy screen provider. it's their personal business, we don't touch πŸ™ˆ

πŸ’œ Description πŸ’œ

Okay so the tea β˜•: this is the central privacy-screen structure. it contains the struct device used to register the screen in sysfs, the screen's state, its ops, etc. basically the whole vibe of the screen lives here πŸ¦‹


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/drm/drm_privacy_screen_driver.h
  • struct drm_privacy_screen_ops(9)

and that's the whole page, bestie, you ate that πŸ“

no gatekeeping here β€” go read the source file, it's lowkey a slay πŸ’€

<x-purple>mwah πŸ’‹ this page lives in ./include/drm, dated October 2026, and that's the cute sign-off β€” periodt πŸ‘‘πŸŒˆ</x-purple>

πŸ“¦ where this page comes from