hih6130_temperature_show(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so welcome to the hih6130_temperature_show(9) entry in the Kernel API Manual πŸ’– this is the lil page about showing a temperature measurement value in sysfs, and honestly? niche but iconic.

✨ NAME ✨

hih6130_temperature_show β€” show temperature measurement value in sysfs. That’s the whole assignment, bestie: temperature measurement value, shown in sysfs. periodt.

πŸ“œ SYNOPSIS πŸ“œ

ssize_t hih6130_temperature_show (struct device *dev , struct
       device_attribute *attr , char *buf );

🧩 ARGUMENTS 🧩

  • dev β€” device. literally the device, no cap.
  • attr β€” device attribute. the attribute in question πŸ’…
  • buf β€” sysfs buffer (PAGE_SIZE) where measurement values are written to. the receipts go here 🫢

πŸ’¬ DESCRIPTION πŸ’¬

Will be called on read access to temp1_input sysfs attribute ✨ like, whenever someone reads that attribute, this function gets the call.

Returns number of bytes written into buffer, negative errno on error. so: bytes when it’s eating, negative errno when it’s not giving 😭

πŸ‘€ SEE ALSO πŸ‘€

bestie, go peek at the rest of the squad:


catch you later bestie πŸ’– source/version: ./drivers/hwmon; date: October 2026; title: hih6130_temperature_show(9) β€” signing off with main character energy πŸŒˆπŸ’…

πŸ“¦ where this page comes from