bl_get_data(9)
π bl_get_data(9) β like, the Kernel API Manual, section 9 bestie β¨
okay so real talk, this is a page straight out of the Kernel API Manual, section 9, and it's short but it eats. let's get into it π«Ά
β¨ NAME β¨
bl_get_data β access devdata π
π SYNOPSIS π
void * bl_get_data (struct backlight_device *bl_dev );
that's it. that's the whole vibe check. one function, one argument, returns a void *. no cap. π¦
πΈ ARGUMENTS πΈ
bl_devβ pointer to backlight device. literally just a pointer to the backlight device, she's not complicated π
π DESCRIPTION π
okay so here's the tea π: when a backlight device is registered, the driver has the possibility to supply a void * devdata. and bl_get_data returns a pointer to that devdata. that's the whole plot. main character energy fr fr π
more specifically (and i want you to clock this, bestie): it returns the pointer to devdata stored while registering the backlight device. so whatever you stashed away at registration time? this is how you get it back. iconic. π
lowkey important: the return is a void *, so you are the one who knows what's actually in there. no cap, don't come crying to me if you cast it wrong π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/backlight.hβ the header where all the backlight lore lives π enum backlight_update_reason(9)enum backlight_type(9)struct backlight_ops(9)struct backlight_properties(9)struct backlight_device(9)backlight_update_status(9)backlight_enable(9)backlight_disable(9)backlight_is_blank(9)backlight_get_brightness(9)
like, the whole backlight friend group honestly πβ¨
and that's the page!! shoutout to ./include/linux for being the source, to October 2026 for the timestamp (futuristic queen β), and to bl_get_data(9) herself for keeping it cute and short π mwah, go read the other backlight pages, ily, bye π§π
π¦ 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