of_find_backlight_by_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 calling put_device on the backlight device's .dev field. that's literally the caller's responsibility 🫢

πŸ”₯ SEE ALSO πŸ”₯


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