amdgpu_debugfs_gfxoff_write(9)
π amdgpu_debugfs_gfxoff_write(9) β the kernel API manual, but make it make sense
okay so bestie, this is a page straight out of the Kernel API Manual β like, the actual manual, section 9, and the star of the show is amdgpu_debugfs_gfxoff_write. she's a little function with one job and honestly? she ate. let's get into it π«Ά
β¨ NAME β¨
amdgpu_debugfs_gfxoff_write β literally just enable/disable GFXOFF. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
ssize_t amdgpu_debugfs_gfxoff_write (struct file *f , const char __user
*buf , size_t size , loff_t *pos );
so she takes a struct file *f, a const char __user *buf, a size_t size and a loff_t *pos, and she hands you back a ssize_t. iconic signature, no notes. β¨
π ARGUMENTS π
fβ the open file handle. like, the file is already open, this is just the handle to it. bestie is holding the door for you πͺbufβ the user buffer you're writing data from. yes, user buffer, so be normal about it please πsizeβ number of bytes to write. how much you're writing, fr fr.posβ the offset to seek to. where you're landing in the file, lowkey.
π₯ DESCRIPTION π₯
okay so here's the whole plot: you write a 32-bit zero to disable GFXOFF, or a 32-bit non-zero to enable it.
that's the entire function. zero = off, non-zero = on. no cap, that's it. the way that a single 32-bit value is running the whole show π
π SEE ALSO π
the kernel file this lives in, first of all:
Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
and then the whole friend group β these are all (9) pages, go say hi π:
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_read(9)amdgpu_debugfs_regs_init(9)
π«Ά and that's the page!! sourced from./drivers/gpu/drm/amd/amdgpu, dated October 2026, and she goes byamdgpu_debugfs_gfxoff_write(9)β mwah, slay, 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