STRUCT LED_PATTERN(9)
π struct led_pattern(9) π
okay so bestie, welcome to the struct led_pattern page β this is a chunk of the Kernel API Manual and it is literally the entire personality of a blink pattern, no cap. It's a tiny struct, only two members, but it's giving main character energy because it's the thing that tells a LED how to dance. πΊβ¨
β¨ NAME β¨
struct led_pattern β pattern interval settings π
That's it. That's the whole vibe. It's the little struct that holds one step of a lighting pattern, and honestly? iconic.
π SYNOPSIS π
struct led_pattern {
u32 delta_t;
int brightness;
};
likeβ¦ two fields. two. and yet so much power. ππ
π¦ Members π¦
delta_tβ the pattern interval delay, in milliseconds. so basically "how long does this step of the pattern last" β the timing of the whole thing. β±οΈbrightnessβ the pattern interval brightness. the actual glow level for this step. how bright are we shining, bestie? π₯
ngl,delta_tis au32andbrightnessis anint, and yes, that's exactly what the manual says, so we're keeping it exactly like that. π«Ά
π SEE ALSO π
okay so if you liked this struct you're gonna be obsessed with her friends β the whole ./include/linux/leds.h kernel file crew, plus:
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)led_sysfs_is_disabled(9)
go read them all, i'll wait. π
πΈ mwah, that's the page! this little cutie lives in ./include/linux and this edition is dated October 2026 β so screenshot it, cite it, love it. byeee 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