ixgbe_add_hwmon_attr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ixgbe_add_hwmon_attr(9) β€” Kernel API Manual energy πŸ’–

okay bestie, welcome to ixgbe_add_hwmon_attr(9), straight from the Kernel API Manual. This one is all about making a hwmon attr table for a hwmon sysfs file, and yes, it's giving very specific kernel-helper main character energy ✨


🌸 NAME

ixgbe_add_hwmon_attr β€” Create hwmon attr table for a hwmon sysfs file.


πŸŽ€ SYNOPSIS

int ixgbe_add_hwmon_attr (struct ixgbe_adapter *adapter , unsigned int
       offset , int type );

πŸ¦‹ ARGUMENTS

  • adapter β€” pointer to the adapter structure 🫢
  • offset β€” offset in the eeprom sensor data table πŸ‘€
  • type β€” type of sensor data to display πŸ’…

✨ DESCRIPTION

So for each file we want in hwmon's sysfs interface, we need a device_attribute. That device_attribute is included in our hwmon_attr struct, and that struct contains the references to the data structures we need to get the data to display. literally the whole little pipeline for showing sensor data, no cap πŸ’–


πŸ‘€ SEE ALSO

Kernel file ./drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c


and that's the whole page, bestie πŸŽ€ this one comes from the Kernel API Manual and is dated October 2026, with the source/version footer showing ./drivers/net/ethernet/intel/i... β€” slay, go read the kernel file if you need more iykyk context πŸ’œ

πŸ“¦ where this page comes from