lwmi_cd_sub_master_bind(9)
π lwmi_cd_sub_master_bind(9) β from the Kernel API Manual, bestie β¨
Okay so this is a page from the Kernel API Manual, and we're talking about lwmi_cd_sub_master_bind β the function that binds the sub-component of a sub-master device. Sound confusing? It's not, I promise. Let's go π«Ά
πΈ NAME πΈ
lwmi_cd_sub_master_bind β literally just binding the sub-component of a sub-master device. That's the whole vibe. π
β¨ SYNOPSIS β¨
int lwmi_cd_sub_master_bind (struct device *dev );
One function, one argument, one int coming back at you. Iconic.
π¦ ARGUMENTS π¦
devβ the sub-master capdata basic device. That's the one being handed over, bestie, no cap.
π₯ DESCRIPTION π₯
So here's what goes down: it calls component_bind_all to bind the sub-component device to the sub-master device. Simple as that. β¨
And if that goes well? On success, it collects the pointer to the sub-component list and tries to call the master callback. Like, it tries β that's what the manpage says, so that's what we're telling you. π
π RETURN π
0 on success β slay β or an error code. That's it. If you get a 0, you ate. π
π§ SEE ALSO π§
Kernel file ./drivers/platform/x86/lenovo/wmi-capdata.c β go read it, iykyk π
And the whole squad:
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_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)
ngl bestie, the whole family lives under ./drivers/platform/x86/lenovo β that's the main character directory right there. π
Okay that's the whole page, mwah π β brought to you by ./drivers/platform/x86/lenovo, dated October 2026. Periodt. πβ¨π
π¦ 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