lwmi_om_hwmon_is_visible(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 🌈

xoxo, bestie πŸ’– β€” source/version: ./drivers/platform/x86/lenovo, date: October 2026, manual page: lwmi_om_hwmon_is_visible(9) 🫢

πŸ“¦ where this page comes from