amdgpu_hmm_invalidate_gfx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_hmm_invalidate_gfx(9) β€” the Kernel API Manual, bestie edition

okay so picture this: it's a whole kernel API manual page, and the star of the show is amdgpu_hmm_invalidate_gfx. yes that's a mouthful. no we're not shortening it. it's iconic, it stays.


✨ NAME ✨

amdgpu_hmm_invalidate_gfx β€” the callback that slides into your DMs to let you know the mm is about to change πŸ¦‹


🌸 SYNOPSIS 🌸

bool amdgpu_hmm_invalidate_gfx (struct mmu_interval_notifier *mni ,
       const struct mmu_notifier_range *range , unsigned long cur_seq );

it returns a bool, bestie. keep that in mind. πŸŽ€


πŸ’– ARGUMENTS πŸ’–

  • mni β€” the range (mm) is literally about to update, so this is your heads-up notifier. pay attention. πŸ‘€
  • range β€” all the deets on the invalidation. the juicy details. the who/what/when of the whole thing. ✨
  • cur_seq β€” the value you pass to mmu_interval_set_seq. that's it. that's the job. don't overthink it. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what this function actually does: it blocks until operations on BOs finish up, and then it marks pages as accessed β€” and potentially dirty. that's the whole vibe. 🫢

ngl this is the "wait for everyone to get out of the bathroom before you mop" of kernel callbacks. block first, mark later. periodt.

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr:


and that's the page, bestie πŸ§šπŸ’œ this masterpiece lives in ./drivers/gpu/drm/amd/amdgpu, it's stamped October 2026, and it goes out under the title amdgpu_hmm_invalidate_gfx(9) from the Kernel API Manual. slay, stay hydrated, and go mark some pages as accessed πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from