amdgpu_debu...gs_smc_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 handle
  • buf β€” user buffer to write data from
  • size β€” number of bytes to write
  • pos β€” 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


mwah πŸ’‹ β€” source: ./drivers/gpu/drm/amd/amdgpu Β· date: October 2026 Β· page: amdgpu_debu...gs_smc_write(9) 🫢

πŸ“¦ where this page comes from