STRUCT PALMAS_PWRON(9)
π 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 π
- Kernel file
./drivers/input/misc/palmas-pwrbutton.c struct palmas_pwron_config(9)palmas_power_button_work(9)pwron_irq(9)palmas_pwron_params_ofinit(9)palmas_pwron_probe(9)palmas_pwron_remove(9)palmas_pwron_suspend(9)palmas_pwron_resume(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms