vcn_v1_0_enc...g_emit_fence(9)
β¨ NAME β¨
vcn_v1_0_enc_ring_emit_fence β bestie, this one emits an enc fence, and a trap command π (like, both, in one go, no cap)
πΈ SYNOPSIS πΈ
void vcn_v1_0_enc_ring_emit_fence (struct amdgpu_ring *ring , u64 addr ,
u64 seq , unsigned flags );
okay so that's the whole signature, and yes you literally pass all four of those, in that order, periodt π
π¦ ARGUMENTS π¦
ringβ anamdgpu_ringpointer π« your lil ring struct, the one we're writing toaddrβ the address π like, the one the fence points atseqβ the sequence number π’ the number that keeps everything in order, iykykflagsβ the fence related flags π© all the fence-adjacent flag bits live here
π DESCRIPTION π
So basically β and hear me out β this function writes an enc fence and a trap command into the ring. That's it. That's the whole vibe β¨
Like, it takes those args and goes "here's your fence, here's your trap, ring, do your thing" π«Ά The way that it's literally just writing two things to the ring and dipping π
π§ SEE ALSO π§
The kernel file this lives in is ./drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c β go read it if you're feeling brave, it's giving main character energy π₯
And here's the whole friend group, all the neighbors, every single one, no skips:
vcn_v1_0_early_init(9)vcn_v1_0_sw_init(9)vcn_v1_0_sw_fini(9)vcn_v1_0_hw_init(9)vcn_v1_0_hw_fini(9)vcn_v1_0_suspend(9)vcn_v1_0_resume(9)vcn_v1_0_mc_resume_spg_mode(9)vcn_v1_0_disable_clock_gating(9)vcn_v1_0_enable_clock_gating(9)vcn_v1_0_start_spg_mode(9)vcn_v1_0_stop_spg_mode(9)vcn_v1_0_dec_ring_get_rptr(9)vcn_v1_0_dec_ring_get_wptr(9)vcn_v1_0_dec_ring_set_wptr(9)vcn_v1_0_dec_ring_insert_start(9)vcn_v1_0_dec_ring_insert_end(9)vcn_v1_0_dec_ring_emit_fence(9)vcn_v1_0_dec_ring_emit_ib(9)vcn_v1_0_enc_ring_get_rptr(9)vcn_v1_0_enc_ring_emit_ib(9)
okay that's the whole page, ily, go emit some fences πβ¨
little sign-off moment: this cutie lives under ./drivers/gpu/drm/amd/amdgpu, the version is from October 2026, and it's filed under vcn_v1_0_enc...g_emit_fence(9) β mwah π
π¦ 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