vcn_v2_0_enc...g_emit_fence(9)
π fence-emission station π
Okay bestie, welcome to the Kernel API Manual. This page is all about vcn_v2_0_enc...g_emit_fence(9) β yeah, the header truncates the name like that, it's literally giving "we ran out of character budget" π. Anyway, it's a tiny but iconic function from the amdgpu/VCN universe, and we're gonna read it together. π«Ά
πΈ NAME πΈ
vcn_v2_0_enc_ring_emit_fence β the main-character move that emits an enc fence & trap command. π
β¨
π¦ SYNOPSIS π¦
void vcn_v2_0_enc_ring_emit_fence (struct amdgpu_ring *ring , u64 addr ,
u64 seq , unsigned flags );
π ARGUMENTS π
ringβ anamdgpu_ringpointer, aka the ring our little function is about to write into. slay π«addrβ the address. just vibes, just a location πseqβ the sequence number, so everyone stays in order π’flagsβ fence related flags. very fence, very related π©
β¨ DESCRIPTION β¨
Okay so here's the whole plot: it writes an enc fence and a trap command onto the ring. That's it, that's the function. Short, sweet, and absolutely doing its job. no cap. π₯
π SEE ALSO π
The kernel file is ./drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c β go say hi to it. π
And here's the whole squad of related functions, all present and accounted for:
vcn_v2_0_early_init(9)vcn_v2_0_sw_init(9)vcn_v2_0_sw_fini(9)vcn_v2_0_hw_init(9)vcn_v2_0_hw_fini(9)vcn_v2_0_suspend(9)vcn_v2_0_resume(9)vcn_v2_0_mc_resume(9)vcn_v2_0_disable_clock_gating(9)vcn_v2_0_enable_clock_gating(9)vcn_v2_0_dec_ring_get_rptr(9)vcn_v2_0_dec_ring_get_wptr(9)vcn_v2_0_dec_ring_set_wptr(9)vcn_v2_0_dec_ring_insert_start(9)vcn_v2_0_dec_ring_insert_end(9)vcn_v2_0_dec_ring_insert_nop(9)vcn_v2_0_dec_ring_emit_fence(9)vcn_v2_0_dec_ring_emit_ib(9)vcn_v2_0_enc_ring_get_rptr(9)vcn_v2_0_enc_ring_emit_ib(9)
And that's the page, bestie! π«Ά Source/version is ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and the footer name is vcn_v2_0_enc...g_emit_fence(9) β same truncated legend we started with. Go forth and emit those fences 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