radeon_mn_invalidate(9)
π radeon_mn_invalidate β like, the manual page, bestie
okay so this is radeon_mn_invalidate(9), straight out of the Kernel API Manual, and it's literally the callback that goes "hey bestie, the mm changed π". Let's get into it β¨
π NAME π
radeon_mn_invalidate β the callback that notifies you about an mm change. no cap, that's the whole vibe.
πΈ SYNOPSIS πΈ
bool radeon_mn_invalidate (struct mmu_interval_notifier *mn , const
struct mmu_notifier_range *range , unsigned long cur_seq );
copy it exactly like that, don't @ me π
π¦ ARGUMENTS π¦
mnβ our notifier π like, the one that belongs to us.rangeβ the VMA that's under invalidation rn π«Άcur_seqβ the value you pass tommu_interval_set_seq, periodt.
β¨ DESCRIPTION β¨
So here's the tea: we block until all the BOs between start and end are idle π΄ β yes, all of them, we wait β and then we unmap them by moving them back into the system domain again. iconic behaviour honestly π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/radeon/radeon_mn.cβ that's where the magic lives π§ radeon_mn_register(9)radeon_mn_unregister(9)
ngl, if you're poking around in here you should probably also say hi to its register/unregister siblings up there π iykyk
and that's the whole page, bestie ππ sign-off time: this one came from ./drivers/gpu/drm/radeon and it's dated October 2026 β slay, go forth and invalidate responsibly πβ
π¦ 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