amdgpu_debug...s_didt_write(9)
π amdgpu_debugfs_regs_didt_write(9) β like, the Kernel API Manual bestie β¨
okay so this is a page from the Kernel API Manual, and the function we're obsessing over is amdgpu_debugfs_regs_didt_write β yes the header truncates it to amdgpu_debug...s_didt_write(9) because names this long are simply too iconic for one line π
β¨ NAME β¨
amdgpu_debugfs_regs_didt_write β literally writes to a DIDT register. that's the whole vibe. no cap π
π¦ SYNOPSIS π¦
ssize_t amdgpu_debugfs_regs_didt_write (struct file *f , const char
__user *buf , size_t size , loff_t *pos );
she takes four arguments and returns an ssize_t, and honestly? slay π«Ά
πΈ ARGUMENTS πΈ
fβ the open file handle. like, the file you already have open, bestie, that one πbufβ the user buffer you're pulling the data from to write. it's the user buffer, so mind your manners β¨sizeβ number of bytes to write. how many bytes, you ask? this many. exactly this many πposβ offset to seek to. she's giving "where are we even" energy π¦
π DESCRIPTION π
ok so here's the tea, and it's actually good tea π:
the lower bits are the BYTE offset of the register to write. and the way that works means you can write multiple registers in a single call β one call, many registers, main character energy β and the returned size reflects that, so you know exactly how much got done π₯
like, the return value is doing the receipts for you. no need to guess, she tells you. periodt π
π SEE ALSO π
bestie, the lore expands. the kernel file lives right here:
./drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
and here's the whole friend group, all of them, in order, no skips π:
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_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)amdgpu_debugfs_regs_init(9)
and that's the whole page, bestie β every argument, every register function, every crumb of lore, preserved π β¨
this came to you from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's filed under amdgpu_debug...s_didt_write(9) β go forth and write those registers, icon ππ¦πΈ
π¦ 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