lwmi_cd_sub_master_add(9)
π NAME π
Okay bestie, this page is lwmi_cd_sub_master_add(9) from the Kernel API Manual β and itβs literally about registering a sub-master with its sub-component. Slay. β¨
πΈ SYNOPSIS πΈ
int lwmi_cd_sub_master_add (struct lwmi_cd_priv *priv , enum
lwmi_cd_type sub_component_type );
π ARGUMENTS π
privβ Pointer to the sub-master capdata device private data. Itβs giving βhand me the private-data bag, bestie.β π«Άsub_component_typeβ Type of the sub-component. Yep, thatβs the whole vibe. π
π¦ DESCRIPTION π¦
So hereβs the tea: this function matches the sub-component type and registers the current capdata device as a sub-master. Main character registration moment, honestly. π
If the given sub-component type is CD_TYPE_NONE, it marks the sub-component as non-existent without registering the sub-master. No cap, no fake registration. π
β RETURN β
0on success, or an error code. Thatβs it. Thatβs the return. Periodt. π
π SEE ALSO π
- Kernel file:
./drivers/platform/x86/lenovo/wmi-capdata.c - Also peep these icons:
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_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)β iykyk. π₯
Signed off with maximum sparkle from the ./drivers/platform/x86/lenovo source vibe, dated October 2026, for lwmi_cd_sub_master_add(9) β mwah. ππ
π¦ 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