led_sysfs_is_disabled(9)
π 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 thestruct 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:
- Kernel file
./include/linux/leds.hπ struct led_lookup_data(9)led_classdev_register_ext(9)led_classdev_register(9)led_blink_set(9)led_blink_set_nosleep(9)led_blink_set_oneshot(9)led_set_brightness(9)led_set_brightness_sync(9)led_mc_set_brightness(9)led_update_brightness(9)led_get_default_pattern(9)led_sysfs_disable(9)led_sysfs_enable(9)led_compose_name(9)led_get_color_name(9)struct led_pattern(9)
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
- 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