devm_led_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, this is devm_led_get(9) from the Kernel API Manual β€” and its whole vibe is: request a LED device via the LED framework. iconic devm behavior, fr fr. ✨

🌸 SYNOPSIS 🌸

struct led_classdev * devm_led_get (struct device *dev , char *con_id );

🫢 ARGUMENTS 🫢

  • dev β€” the device for which you're getting the LED device. literally the β€œwho is asking” energy. πŸŽ€
  • con_id β€” the name of the LED from the device's point of view. iykyk, it's the connection-ID situation. πŸ¦‹

✨ DESCRIPTION ✨

The LED device returned from this function is automatically released on driver detach β€” no cap, that's the devm main character move doing its thing. πŸ’…

And the return? It returns a pointer to a LED device or ERR_PTR(errno) on failure. periodt. πŸ’–

🌈 SEE ALSO 🌈


mwah πŸ’‹ β€” signed off from the ./drivers/leds source, October 2026 edition, with devm_led_get(9) living its best life. πŸ’–

πŸ“¦ where this page comes from