amdgpu_debugfs_sensor_read(9)
π 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 π
amdgpu_debugfs_process_reg_op(9)amdgpu_debugfs_regs_pcie_read(9)amdgpu_debugfs_regs_pcie_write(9)amdgpu_debugfs_regs_pcie64_read(9)amdgpu_debugfs_regs_pcie64_write(9)amdgpu_debugfs_regs_didt_read(9)amdgpu_debugfs_regs_didt_write(9)amdgpu_debugfs_regs_smc_read(9)amdgpu_debugfs_regs_smc_write(9)amdgpu_debugfs_gca_config_read(9)amdgpu_debugfs_gfxoff_residency_read(9)amdgpu_debugfs_gfxoff_residency_write(9)amdgpu_debugfs_gfxoff_count_read(9)amdgpu_debugfs_gfxoff_write(9)amdgpu_debugfs_gfxoff_read(9)amdgpu_debugfs_regs_init(9)
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
- 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