led_update_brightness(9)
β¨ NAME β¨
Bestie, meet led_update_brightness(9) β the Kernel API Manual page for the little glow-up function that updates LED brightness. π‘β¨
π SYNOPSIS π
Okay so hereβs the whole signature, no cap:
int led_update_brightness (struct led_classdev *led_cdev );
π ARGUMENTS π
led_cdevβ the LED to query. Thatβs the one weβre checking on, bestie. ππ
π DESCRIPTION π
So what it does is: it gets an LEDβs current brightness, then updates the led_cdev->brightness member with the obtained value. Thatβs the whole vibe β read the brightness, stash it in the struct member. β¨π¦
π₯ RETURN π₯
It returns 0 on success, or a negative error value on failure. Slay when itβs 0, not slay when itβs negative. ππ
π¦ SEE ALSO π¦
Go look at these besties too, iykyk:
- 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_get_default_pattern(9)led_sysfs_disable(9)led_sysfs_enable(9)led_compose_name(9)led_get_color_name(9)led_sysfs_is_disabled(9)struct led_pattern(9)
mwah π β this page is sourced from ./include/linux, dated October 2026, and itβs the led_update_brightness(9) manual page. Bye bestie! π«ΆπΈ
π¦ 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