backlight_de..._get_by_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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