attr_capdata01_show(9)
π attr_capdata01_show(9) β kernel API manual, but make it make sense
okay so bestie, welcome to attr_capdata01_show(9) π this is a page from the Kernel API Manual and honestly? it's a little guy with a big job. it reads out one property of an attribute and hands it back to you as text. let's get into it β¨
π NAME π
attr_capdata01_show β get the value of the specified attribute property. that's it, that's the whole vibe π«Ά
πΈ SYNOPSIS πΈ
ssize_t attr_capdata01_show (struct kobject *kobj , struct
kobj_attribute *kattr , char *buf , struct tunable_attr_01 *tunable_attr
, enum attribute_property prop );
look at that signature, it's giving main character energy π
π¦ ARGUMENTS π¦
kobjβ pointer to the driver object. your driver's little home base πkattrβ pointer to the attribute calling this function. the one who knocked on the door πbufβ the buffer to write to. this is where the tea gets poured βtunable_attrβ the attribute to be read. the actual thing you're curious about πpropβ the property of this attribute to be read. like, which specific detail of it π
β DESCRIPTION β
so what does it DO. it retrieves the given property from the capability data 01 struct, for the specified attribute's "custom" thermal mode π₯ (yes, "custom" is in quotes, that's their naming, not mine, quote it exactly bestie).
the whole point? this function is intended to be generic, so literally any integer attribute's "_show" function can call it. one function, infinite callers. iconic, honestly πβ¨
and if the WMI is success, the sysfs attribute is notified π£ β that's a real detail, keep it in your heart.
π RETURN π
either the number of characters written to buf, or an error code. two outcomes, one function, no in-between π
π SEE ALSO π
okay this list is LONG and we respect her for it. the kernel file lives at ./drivers/platform/x86/lenovo/wmi-other.c π and here's everyone else in the group chat:
lwmi_om_fan_get_set(9)lwmi_om_hwmon_is_visible(9)lwmi_om_hwmon_read(9)lwmi_om_hwmon_write(9)lwmi_om_hwmon_add(9)lwmi_om_hwmon_remove(9)lwmi_om_fan_info_init(9)lwmi_om_fan_info_collect_cd00(9)lwmi_om_fan_info_collect_cd_fan(9)lwmi_psy_ext_get_prop(9)lwmi_psy_ext_set_prop(9)lwmi_psy_prop_is_supported(9)lwmi_psy_prop_is_writeable(9)lwmi_add_battery(9)lwmi_remove_battery(9)lwmi_acpi_match(9)lwmi_om_psy_ext_init(9)lwmi_om_psy_remove(9)tunable_attr_01_id(9)int_type_show(9)attr_current_value_store(9)attr_current_value_show(9)lwmi_attr_01_is_supported(9)lwmi_om_fw_attr_add(9)lwmi_om_fw_attr_remove(9)lwmi_om_master_bind(9)lwmi_om_master_unbind(9)
ngl bestie, that's twenty-eight references and every single one of them is staying in this page. no cap. don't come for me about trimming the list π
and that's the page!! π the path is ./drivers/platform/x86/lenovo, the version is October 2026, and it's all filed under attr_capdata01_show(9) β go forth and read those properties, you absolute icon ππβ¨
π¦ 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