amdgpu_sync_move(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_sync_move β€” ngl bestie, this one's a whole relocation era

okay so like, welcome to the Kernel API Manual ✨ this page is amdgpu_sync_move(9) and honestly? it's giving "I'm just gonna move these fences real quick" and we're obsessed πŸŽ€


🌸 NAME 🌸

amdgpu_sync_move β€” move all the fences from src to dst πŸ¦‹

like, every single one. no fence left behind. periodt πŸ’…


✨ SYNOPSIS ✨

void amdgpu_sync_move (struct amdgpu_sync *src , struct amdgpu_sync *dst );

look at that signature. flawless. no return value because she doesn't need to report back, she just does it πŸ‘‘


🫢 ARGUMENTS 🫢

  • src β€” the source of the fences. heads up bestie: this bad girl is empty after the function returns 😭 she gave everything she had.
  • dst β€” the destination for the fences. this is where all the fences end up living their best life πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

so the vibe is: amdgpu_sync_move moves all the fences from source to destination. like, all of them. the whole collection. the entire fence ecosystem 🌈

but here's the tea β˜• β€” every fence that was already chilling in destination gets freed 🩸 like, gone. released. not invited to the afterparty. and source is left empty after the function call, because she transferred everything she owned.

so to recap, in order:

  • fences from src β†’ moved to dst 🚚
  • fences already in dst β†’ freed πŸ’€
  • src afterwards β†’ empty, thriving, unbothered 🧚

fr fr, this is highkey a "clean slate" moment for src and a "new management" moment for dst. iconic behavior, no notes πŸ’œ


πŸ‘€ SEE ALSO πŸ‘€

the kernel file that runs this whole situation lives at ./drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c β€” go read it, iykyk πŸ“–

and the whole sync-fence friend group, all of them linked so you can go down the rabbit hole πŸ‡:

amdgpu_sync_create(9), amdgpu_sync_same_dev(9), amdgpu_sync_get_owner(9), amdgpu_sync_keep_later(9), amdgpu_sync_add_later(9), amdgpu_sync_fence(9), amdgpu_sync_resv(9), amdgpu_sync_kfd(9), amdgpu_sync_peek_fence(9), amdgpu_sync_get_fence(9), amdgpu_sync_clone(9), amdgpu_sync_push_to_job(9), amdgpu_sync_free(9), amdgpu_sync_init(9), amdgpu_sync_fini(9)


⚠️ friendly reminder bestie: those fences sitting in dst before you call this? yeah, they get freed. that's real. don't be surprised when they're gone πŸ™ˆ

and that's the whole page, mwah πŸ’‹ sign-off time: this one came from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's filed under amdgpu_sync_move(9) πŸŽ€ stay slay, stay synced, and remember β€” fences are temporary but good documentation is forever βœ¨πŸ’–

πŸ“¦ where this page comes from