of_find_backlight_by_node(9)
πΈ NAME πΈ
okay so bestie, welcome to the Kernel API Manual page for of_find_backlight_by_node(9) π
this one is literally about finding a backlight device by its device-tree node. no cap.
β¨ SYNOPSIS β¨
struct backlight_device * of_find_backlight_by_node (struct device_node
*node );
π¦ ARGUMENTS π¦
nodeβ the device-tree node of the backlight device. that's the one you're looking up, bestie π
π DESCRIPTION π
So this function returns a pointer to the backlight device corresponding to the given DT node, or NULL if no such backlight device exists or if the device hasn't been probed yet. π
It also obtains a reference on the backlight device, and it is the caller's responsibility to drop that reference by calling put_device on the backlight device's .dev field. Don't forget, or the vibe check will fail π
bestie this is the part where you don't ghost the reference β drop it by callingput_deviceon the backlight device's.devfield. that's literally the caller's responsibility π«Ά
π₯ SEE ALSO π₯
- Kernel file
./drivers/video/backlight/backlight.coverview(9) backlight_force_update(9)backlight_device_get_by_name(9)devm_backlight_device_register(9)devm_backlight_device_unregister(9)devm_of_find_backlight(9)
Source/version: ./drivers/video/backlight Β· date: October 2026 Β· page: of_find_backlight_by_node(9). k bye bestie, go get that backlight π
π«Ά
π¦ 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