amdgpu_debugfs_gfxoff_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘‹:


🫢 and that's the page!! sourced from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and she goes by amdgpu_debugfs_gfxoff_write(9) β€” mwah, slay, periodt πŸ’–
πŸ“¦ where this page comes from