amdgpu_debu...idency_write(9)
β¨ NAME β¨
amdgpu_debugfs_gfxoff_residency_write β ok so this is literally the function that flips GFXOFF residency logging on and off, bestie π
(yes this page comes from the Kernel API Manual, we're in kernel-land today π)
πΈ SYNOPSIS πΈ
ssize_t amdgpu_debugfs_gfxoff_residency_write (struct file *f , const
char __user *buf , size_t size , loff_t *pos );
π¦ ARGUMENTS π¦
fβ the open file handle, your lil entry ticket to the party ποΈbufβ user buffer you're writing the data from, this is where the magic bytes livesizeβ how many bytes you're writing, the count, the amount, the whole vibe checkposβ the offset to seek to, iykyk π
π DESCRIPTION π
okay so here's the tea π β the whole function is a toggle, no cap:
- write a 32-bit non-zero value β logging starts, we're SO on π₯
- write a 32-bit zero β logging stops, pack it up, show's over π
that's it. that's the whole function. she's simple, she's iconic, she's a binary switch and honestly? respect. π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.cβ the source file this whole situation lives in π«Ά 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_count_read(9)amdgpu_debugfs_gfxoff_write(9)amdgpu_debugfs_gfxoff_read(9)amdgpu_debugfs_regs_init(9)
like, the whole friend group is here, go say hi to all of them π§β¨
bestie this is kernel API territory β you're writing into driver debugfs, so know what you're doing before you yeet bytes at it, fr fr π
okay that's the page!! from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, page name amdgpu_debu...idency_write(9) β mwah, love u, bye ππ
π¦ 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