cpuidle_add_device_sysfs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cpuidle_add_device_sysfs β€” Kernel API Manual ✨

okay so bestie, welcome to the function that gives your cpuidle device its own little sysfs glow-up πŸ’– the manual name for this one is literally Kernel API Manual, and it's serving very much "kernel internals but make it cute" energy. let's get into it πŸŽ€


🌸 NAME 🌸

cpuidle_add_device_sysfs β€” adds device specific sysfs attributes ✨

like, it literally adds sysfs attributes that are specific to the device. that's the whole vibe. no cap 🫢


πŸ’œ SYNOPSIS πŸ’œ

int cpuidle_add_device_sysfs (struct cpuidle_device *device );

yes, it returns an int, and yes, there is one argument. iconic behavior honestly πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • device β€” the target device. that's it. that's the argument. she's the main character here πŸ’…

🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/cpuidle/sysfs.c β€” go read it if you're feeling nerdy, iykyk πŸ“–βœ¨

and here's the whole friend group, all the related calls you might want to check out:

like a little sysfs friend group, all linked together fr fr πŸ§šπŸ’œ


ok that's the whole page bestie β€” short, sweet, and every single detail is still in there. slay πŸ’€βœ¨

and that's a wrap! πŸŽ€ this one comes to you from ./drivers/cpuidle, dated October 2026, and it's the cpuidle_add_device_sysfs(9) page β€” periodt πŸ’–πŸŒΈ

πŸ“¦ where this page comes from