lwmi_om_hwmon_is_visible(9)
πΈ NAME πΈ
okay so bestie, this is the lwmi_om_hwmon_is_visible(9) page from the Kernel API Manual β¨ and it's literally about one job: determining visibility of HWMON attributes π
. Like, should this HWMON attribute show up in sysfs or not? That's the whole main-character question.
β¨ SYNOPSIS β¨
umode_t lwmi_om_hwmon_is_visible (const void *drvdata , enum
hwmon_sensor_types type , u32 attr , int channel );
π ARGUMENTS π
drvdataβ driver private data. That's the driver's own little stash of context π«Ά.typeβ sensor type. Which kind of sensor are we checking? π‘οΈattrβ attribute identifier. The specific attribute's ID, no cap.channelβ channel index. Which channel we're on π’.
π DESCRIPTION π
This function determines whether an HWMON attribute should be visible in sysfs, based on hardware capabilities and current configuration. It's giving vibe check for sysfs visibility β¨.
π₯ RETURN π₯
It returns the permission mode, or 0 if invisible. So: permission mode = visible, 0 = not visible, periodt π
.
π SEE ALSO π
- Kernel file:
./drivers/platform/x86/lenovo/wmi-other.cβ the actual spot in the kernel tree, iykyk π§ lwmi_om_fan_get_set(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_capdata01_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)
xoxo, bestie π β source/version: ./drivers/platform/x86/lenovo, date: October 2026, manual page: lwmi_om_hwmon_is_visible(9) π«Ά
π¦ 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