lwmi_cd_match(9)
π lwmi_cd_match(9) π
okay so welcome to the Kernel API Manual entry for lwmi_cd_match β genuinely one of the shortest pages ever and yet she's important, so let's get into it bestie π
β¨ NAME β¨
lwmi_cd_match β Match rule for the master driver.
like... she's literally the vibe check for the master driver. if the match says no, it's a no. periodt π«Ά
πΈ SYNOPSIS πΈ
int lwmi_cd_match (struct device *dev , void *type );
yup that's the whole thing. no cap, that's it. tiny function, big main character energy π₯
π¦ ARGUMENTS π¦
devβ Pointer to the capability data parent device. so like, the parent device holding the capability data β that's the one she's looking at πtypeβ Pointer to capability data type (enumlwmi_cd_type *) to match. so you're handing her a pointer to the type and she's like "okay does this match or not" π
β RETURN β
int.
that's it. that's the whole return section. the manpage gives us an int and then leaves the group chat without elaborating π no extra words, no explanation of what the int means β so ngl, don't go inventing return values in your head, just take the int and move on π
fr fr though β the page does not document what any specific value means, so don't be out here assuming. the documentation said int and dipped π
π SEE ALSO π
- Kernel file
./drivers/platform/x86/lenovo/wmi-capdata.cβ that's where she lives, go say hi π 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_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)
the whole girl squad π§ consider this your reading list, bestie β it's giving "one of these links is exactly what you actually needed" iykyk π
mwah π that's the whole page!! she's filed under ./drivers/platform/x86/lenovo, dated October 2026, and she answers to lwmi_cd_match(9) β go off, you understood it, I'm obsessed πβ¨π
π¦ 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