lwmi_cd_sub_master_unbind(9)
π lwmi_cd_sub_master_unbind(9) β Kernel API Manual β¨
okay so bestie, welcome to lwmi_cd_sub_master_unbind from the Kernel API Manual β this is the one that breaks up the situationship between a sub-master device and its sub-component. it's giving "we need to talk" but in C. π«Ά
πΈ NAME πΈ
lwmi_cd_sub_master_unbind β unbind the sub-component of a sub-master device. literally that's the whole job. π
π¦ SYNOPSIS π¦
void lwmi_cd_sub_master_unbind (struct device *dev );
no return value, no drama, just vibes and a void. β¨
π ARGUMENTS π
devβ the sub-master capdata basic device. yes, that one. the sub-master. the basic device. the capdata one. π
π₯ DESCRIPTION π₯
okay so here's the tea, and it's actually important so listen up π
First thing it does: it clears the collected pointer to the sub-component list. why?? because if a binding between the sub-master and the sub-component is about to happen, that stale pointer would let it call the master callback β and we are NOT doing that. nope. not today. clearing the pointer prevents that whole mess from going down. π
Then, once that's handled, it calls component_unbind_all to unbind the sub-component device from the sub-master device. and that's it. that's the function. clean, simple, iconic. π§
π SEE ALSO π
the kernel file lives right here, bestie:
Kernel file ./drivers/platform/x86/lenovo/wmi-capdata.c
and here's the full squad β every single one of them, no cap:
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_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)
and that's the whole page, bestie!! π this came from ./drivers/platform/x86/lenovo and it's dated October 2026, so jot that down in your notes app πβ¨ mwah, go unbind something responsibly ππ¦π
π¦ 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