lwmi_cd_component_bind(9)
π lwmi_cd_component_bind β bestie's guide to the kernel API manual π
okay so this whole page is about one function, and it's lwmi_cd_component_bind, and it lives in the kernel API manual. yes, the kernel. we're doing this. π
β¨ NAME β¨
lwmi_cd_component_bind β literally just binds a component to the master device. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
int lwmi_cd_component_bind (struct device *cd_dev , struct device
*om_dev , void *data );
three args, returns an int. no cap. π
π ARGUMENTS π
cd_devβ pointer to the lenovo-wmi-capdata driver parent device. that's the capdata one, bestie, keep them straight π«Άom_devβ pointer to the lenovo-wmi-other driver parent device. yes there's an "other" one too πdataβ anlwmi_cd_binderobject pointer, and its whole job is to return the capability data back to you. it's giving delivery service β¨
π DESCRIPTION π
so when lenovo-wmi-other's master does its bind, this is what hands over a pointer to the local capdata list. iconic behavior honestly π
and what's that pointer for? it's used to call lwmi_cd*_get_data so you can look up attribute data from the lenovo-wmi-other driver. that's the whole plot. π
also β if cd_dev happens to be a sub-master, it tries to call the master callback. note the "tries", it's not out here making promises π
β RETURN β
0
that's it. that's the return value. zero. slay. π
π¦ SEE ALSO π¦
first up, the kernel file itself:
- Kernel file
./drivers/platform/x86/lenovo/wmi-capdata.c
and then, like, the entire extended friend group π (they all showed up to the function, no one was left out):
lwmi_cd_match(9),lwmi_cd_match_add_all(9),lwmi_cd_call_master_cb(9),lwmi_cd_component_unbind(9),lwmi_cd_sub_master_bind(9),lwmi_cd_sub_master_unbind(9),lwmi_cd_sub_master_add(9),lwmi_cd_sub_master_del(9),lwmi_cd_sub_component_bind(9),lwmi_cd00_show(9),lwmi_cd01_show(9),lwmi_cd_fan_show(9),lwmi_cd_debugfs_show(9),lwmi_cd_debugfs_add(9),lwmi_cd_debugfs_remove(9),lwmi_cd_cache(9),lwmi_cd_fan_list_alloc_cache(9),lwmi_cd_alloc(9),lwmi_cd_setup(9),lwmi_cd01_notifier_call(9),lwmi_cd01_unregister(9)
periodt. π
ngl, that see-also list is a whole friend group chat and you're now in it. π
and that's the page!! π§ this little beauty came from ./drivers/platform/x86/lenovo and it's dated October 2026, so yeah, future vibes only β mwah, go read the source π
π¦ 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