led_get_flash_fault(9)
β¨ led_get_flash_fault(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one's a lil function called led_get_flash_fault, and honestly? it's giving "small but important" energy π
πΈ NAME πΈ
led_get_flash_fault β get the flash LED fault, periodt π
π SYNOPSIS π
int led_get_flash_fault (struct led_classdev_flash *fled_cdev , u32
*fault );
like, that's the whole vibe. it takes a flash LED and a fault pointer, and it returns an int. that's it, that's the function π«Ά
π¦ ARGUMENTS π¦
fled_cdevβ the flash LED you wanna query, bestie β¨ like, this is the LED. the one you're asking about. no cap.faultβ a bitmask containing flash faults π so it's not just "is there a fault" β it's a whole bitmask of them. highkey important detail, don't forget it.
β DESCRIPTION β
Get the flash LED fault. π
that's literally it, i'm not gonna lie to you β the manpage keeps it short and iconic. you call this, you get the fault. slay π
π₯ RETURN π₯
0on success π- a negative error value on failure π (yes, negative, and yes, error values, plural β check it fr fr)
ngl bestie, always check that return value. 0 means you ate, negative means something went sideways and you should handle it π
π SEE ALSO π
- Kernel file
./include/linux/led-class-flash.hβ the source of truth, go read it iykyk π led_classdev_flash_register_ext(9)led_classdev_flash_unregister(9)led_set_flash_strobe(9)led_get_flash_strobe(9)led_set_flash_brightness(9)led_update_flash_brightness(9)led_set_flash_timeout(9)led_set_flash_duration(9)
like, the whole flash LED friend group honestly π§ the register/unregister girlies, the strobe set/get duo, the brightness gang, and the timeout/duration besties β all iconic, all linked above π
and that's the page! π this lil gem lives under ./include/linux and is dated October 2026 β so like, mark your calendars bestie, mwah πππ¦
π¦ 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