wakeup_source_sysfs_add(9)
π« wakeup_source_sysfs_add(9) π«
okay so bestie, welcome to the Kernel API Manual β this one's a lil function called wakeup_source_sysfs_add, and honestly? it's giving "make my wakeup source visible in sysfs" energy. no cap. β¨
πΈ NAME πΈ
wakeup_source_sysfs_add β adds wakeup_source attributes to sysfs. that's the whole vibe. she shows up, she makes files, she leaves. iconic. π
π¦ SYNOPSIS π¦
int wakeup_source_sysfs_add (struct device *parent , struct
wakeup_source *ws );
literally just call her with a parent device and a wakeup source and she does the thing. returns an int, so like, pay attention to that. π«Ά
π ARGUMENTS π
parentβ theDevicethat the given wakeup source is associated with. and yes, she can beNULLif the source is virtual (a little ghost girl, no physical device, still valid π).wsβ theWakeup sourcethat's getting added in sysfs. that's the main character right there. π
π₯ SEE ALSO π₯
- Kernel file
./drivers/base/power/wakeup_stats.cβ go read the source, iykyk π pm_wakeup_source_sysfs_add(9)wakeup_source_sysfs_remove(9)β the breakup arc π
ngl theparentbeingNULLthing is the one detail people forget, so like, don't be that person. π
and that's the page!! π this gem lives in ./drivers/base/power, and the version/date stamp on her is October 2026 β so like, yeah, she's from the future, slay. bye bestie, go add some sysfs attributes π§ββοΈβ¨πΈ
π¦ 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