lwmi_cd_sub_component_bind(9)
π» lwmi_cd_sub_component_bind(9) β Kernel API Manual β¨
okay bestie, welcome to the lwmi_cd_sub_component_bind page π«Ά this one lives in the Kernel API Manual and it's literally the moment a sub-component gets tied to its sub-master device. short page, big main character energy π
πΈ NAME πΈ
lwmi_cd_sub_component_bind β bind a sub-component to the sub-master device π
β¨ SYNOPSIS β¨
int lwmi_cd_sub_component_bind (struct device *sc_dev , struct device
*sm_dev , void *data );
π ARGUMENTS π
sc_devβ pointer to the sub-component capdata parent device. yes, the sub-component one, don't mix her up with the other one πsm_devβ pointer to the sub-master capdata parent device. that's the sub-master, okay, two different devices, keep them straight bestie πdataβ pointer that's used to return the capability data list pointer. she's an out-param, she carries the list pointer back out π¦
π DESCRIPTION π
so here's the vibe: on the sub-master's bind, this function provides a pointer to the local capdata list π― and that pointer is what the sub-master uses to call the master callback. that's it, that's the whole plot. not me being obsessed with how clean that is πβ¨
β RETURN β
returns 0 π yeah. that's the whole return section. iconic, honestly.
π¦ SEE ALSO π¦
the kernel file that has all the lore:
./drivers/platform/x86/lenovo/wmi-capdata.c
and the whole friend group π:
lwmi_cd_match(9)lwmi_cd_match_add_all(9)lwmi_cd_call_master_cb(9)lwmi_cd_component_bind(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_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)
and that's the whole page, bestie ππ this little gem comes from ./drivers/platform/x86/lenovo, dated October 2026, and it's filed under lwmi_cd_sub_component_bind(9) β go read the rest of the family, 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