amdgpu_debu...gs_smc_write(9)
okay so bestie, this is amdgpu_debu...gs_smc_write(9) from the Kernel API Manual, and it is literally the function that writes to a SMC register. No cap, hereβs the whole signature:
ssize_t amdgpu_debugfs_regs_smc_write (struct file *f , const char __user *buf , size_t size , loff_t *pos );
π NAME
amdgpu_debugfs_regs_smc_write β write to a SMC register. Thatβs the whole assignment, and she ate. π
β¨ SYNOPSIS
ssize_t amdgpu_debugfs_regs_smc_write (struct file *f , const char __user *buf , size_t size , loff_t *pos );
π ARGUMENTS
fβ open file handlebufβ user buffer to write data fromsizeβ number of bytes to writeposβ offset to seek to
πΈ DESCRIPTION
The lower bits are the BYTE offset of the register to write. This allows writing multiple registers in a single call, and having the returned size reflect that. So iconic β multiple registers, one call, and the returned size is right there matching the vibe. β¨
π SEE ALSO
- Kernel file β
./drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 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_gca_config_read(9)amdgpu_debugfs_sensor_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)
mwah π β source: ./drivers/gpu/drm/amd/amdgpu Β· date: October 2026 Β· page: amdgpu_debu...gs_smc_write(9) π«Ά
π¦ 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