led_classdev_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is led_classdev_register(9) from the Kernel API Manual, and the whole name-card moment is: led_classdev_register β€” register a new object of LED class. no cap, that's the function. ✨


πŸ› οΈ SYNOPSIS πŸ› οΈ

int led_classdev_register (struct device *parent , struct led_classdev
*led_cdev );

bestie, that's the exact signature β€” don't come for me about the line break. πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • parent β€” the LED controller device this LED is driven by. like, the device that's driving this LED.
  • led_cdev β€” the led_classdev structure for this device. that's your LED's little paperwork. πŸ—‚οΈ

🌸 DESCRIPTION 🌸

Register a new object of LED class, with the name derived from the name property of the passed led_cdev argument. so you pass in led_cdev, and the name comes from its name property. that's the tea. πŸ«–βœ¨

πŸ”₯ RETURN πŸ”₯

0 on success, or a negative error value on failure. when it's 0 we're slaying; when it's negative, it's giving error and we cry πŸ˜­πŸ’”.

πŸ‘‘ SEE ALSO πŸ‘‘

the whole squad of refs, fr fr:

mwah πŸ’‹ β€” source/version: ./include/linux, date: October 2026, and yes it's still led_classdev_register(9). stay glowing, bestie. 🫢

πŸ“¦ where this page comes from