STRUCT PALMAS_PWRON(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct palmas_pwron(9)

okay so this is a page straight out of the Kernel API Manual, and bestie, it's literally just the one struct β€” but it's a cute struct, so let's get into it 🫢


✨ NAME ✨

struct palmas_pwron β€” Palmas power on data. that's it, that's the vibe 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

struct palmas_pwron {
    struct palmas *palmas;
    struct input_dev *input_dev;
    struct delayed_work input_work;
    int irq;
 };

no cap, copy it exactly like that if you're typing it out πŸ’–


πŸ‘‘ Members πŸ‘‘

  • palmas β€” pointer to the palmas device. your main character, fr fr πŸ’…
  • input_dev β€” pointer to input device. the input-y one ✨
  • input_work β€” work for detecting release of key. lowkey the whole point: this is the work item that notices when you let go of the key πŸŽ€
  • irq β€” irq that we are hooked on to. the interrupt we're attached to, periodt πŸ”₯

🌈 SEE ALSO 🌈

like, go read all of those too, they're the friend group 🧚


ngl the whole struct is four fields and a dream β€” but every single one matters, so don't you dare skip any πŸ™ˆ

and that's a wrap, bestie πŸ’œ this lil page lives at ./drivers/input/misc, comes to you from the Kernel API Manual, and it's dated October 2026 β€” slay, see you in the next one β­πŸ“

πŸ“¦ where this page comes from