amdgpu_hmm_invalidate_gfx(9)
π 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 tommu_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:
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c MMU Notifier(9)amdgpu_hmm_invalidate_hsa(9)amdgpu_hmm_register(9)amdgpu_hmm_unregister(9)amdgpu_hmm_range_valid(9)amdgpu_hmm_range_alloc(9)amdgpu_hmm_range_free(9)
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
- 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