backlight_de..._get_by_name(9)
okay so bestie, this is the backlight_de..._get_by_name(9) page from the Kernel API Manual, section 9 energy β and the full function name is backlight_device_get_by_name, so let's go. πβ¨
β¨ NAME β¨
backlight_device_get_by_nameβ get a backlight device by name. That's the whole name-section vibe, no cap. π
π οΈ SYNOPSIS π οΈ
struct backlight_device * backlight_device_get_by_name (const char *name
);
π ARGUMENTS π
nameβ the device name, bestie. That's the string you're using to look the device up. π¦
π DESCRIPTION π
okay so this function looks up a backlight device by its name. It obtains a reference on the backlight device, and it is the caller's responsibility to drop the reference by calling put_device.
β οΈ bestie, do not ghost that reference. The reference drop is literally your job: call put_device. That's the rule. π
π RETURN π
A pointer to the backlight device if found, otherwise NULL. So: found = pointer to the backlight device; not found = NULL. Simple, iconic. β¨
π SEE ALSO π
the see-also squad, all present and correct:
- Kernel file
./drivers/video/backlight/backlight.coverview(9) backlight_force_update(9)devm_backlight_device_register(9)devm_backlight_device_unregister(9)of_find_backlight_by_node(9)devm_of_find_backlight(9)
cute sign-off: this page's footer has source/version ./drivers/video/backlight and date October 2026. Bye bestie, go get that backlight device β and drop the reference! πππ¦
π¦ 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