amdgpu_debugfs_sensor_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

amdgpu_debugfs_sensor_read β€” ok so this is the little guy that reads from the powerplay sensors ✨

(Also hiiii, this page lives in the Kernel API Manual, welcome to the group chat 🫢)


πŸŽ€ SYNOPSIS

ssize_t amdgpu_debugfs_sensor_read (struct file *f , char __user *buf ,
size_t size , loff_t *pos );

🌸 ARGUMENTS

  • f β€” the open file handle, bestie. it's giving "here's my ticket, let me in" 🎟️
  • buf β€” User buffer to store read data in. this is where the good stuff lands πŸ’–
  • size β€” Number of bytes to read. like how much you're ordering off the menu πŸ“
  • pos β€” Offset to seek to. literally your little "scuse me, scooting to here" position πŸ‘‘

πŸ¦‹ DESCRIPTION

So the offset? It's treated as the BYTE address of one of the sensors enumerated in amd/include/kgd_pp_interface.h under the β€” and I'm quoting this girl verbatim because she said what she said β€” you would use the offset 3 * 4 = 12.

ngl that sentence trails off mid-thought 😭 but that's exactly what the page says, so we are NOT improvising, periodt. What you get is what you get πŸ’€

🌈 SEE ALSO

Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c β€” go say hi to the source, she's iconic πŸ‘‘

the whole friend group fr fr, no one left out πŸ’œ


⭐ bye bestie

This one ships out of ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and the headline is β€” say it with me β€” amdgpu_debugfs_sensor_read(9). slay, go read some sensors, ily, drink water πŸ§šπŸ’–πŸŽ€

πŸ“¦ where this page comes from