amdgpu_debugfs_regs_init(9)
β¨ amdgpu_debugfs_regs_init π
okay so bestie, we're in the Kernel API Manual today, and this is the function that sets up your debugfs register-access situation for an AMD GPU. yes it's a kernel thing. yes it's iconic. let's go π«Ά
πΈ NAME πΈ
amdgpu_debugfs_regs_init β the one that initializes the debugfs entries that give you register access. that's it, that's the whole vibe. it's literally giving "let me peek at your registers" β¨
π SYNOPSIS π
int amdgpu_debugfs_regs_init (struct amdgpu_device *adev );
like, one arg, returns an int. clean. minimal. main character energy fr fr π
π¦ ARGUMENTS π¦
adevβ the device you're attaching these debugfs entries to. that's yourstruct amdgpu_device *, your GPU-in-code-form, the whole reason we're here π
π SEE ALSO π
okay this list is long but every single one of these matters, no skipping, iykyk π
first up, the kernel file where all this lives:
Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
and then the whole squad of related functions, all in section 9:
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_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)
read ones, write ones, residency ones, gfxoff ones β the whole register-access friend group π
ngl the read/write pairs are lowkey a matching set, and honestly? obsessed. go read them all, bestie π
mwah π that's the page. sourced straight from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's a whole served look. periodt. πβ¨
π¦ 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