led_sysfs_is_disabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– led_sysfs_is_disabled(9) πŸ’–

okay so this is a page straight out of the Kernel API Manual β€” it's led_sysfs_is_disabled(9), and bestie, it's literally a one-job function and it does that job flawlessly. no notes. πŸŽ€


✨ NAME ✨

led_sysfs_is_disabled β€” check if the LED sysfs interface is disabled πŸ’…

like, that's it. that's the whole vibe check. it peeks at your LED and tells you whether its sysfs interface has been switched off.


🌸 SYNOPSIS 🌸

bool led_sysfs_is_disabled (struct led_classdev *led_cdev );

one function, one pointer in, one bool out. immaculate. πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • led_cdev β€” the LED you wanna query πŸ‘€ literally just hand it the struct led_classdev * of the light you're curious about.

⭐ RETURN ⭐

it returns true if the led_cdev's sysfs interface is disabled. that's the whole answer. no cap. if it's disabled you get true, periodt. πŸ’―

ngl, the manpage only spells out the true case β€” so don't go making up extra promises about what it returns otherwise, iykyk 🫢

πŸ’œ SEE ALSO πŸ’œ

the whole LED friend group, fr fr β€” go say hi:

like, led_sysfs_disable(9) and led_sysfs_enable(9) are right there if you wanna flip the switch yourself β€” this page is just the lil reporter that tells you which state you're in. 🧚


and that's the whole page, bestie β€” short, sweet, main character energy only πŸ’–

signing off from <code>./include/linux</code>, dated <b>October 2026</b>, page name <code>led_sysfs_is_disabled(9)</code> β€” slay, see you in the next one 🌈✨

πŸ“¦ where this page comes from