sdma_v4_4_2_ring_emit_ib(9)
β¨ sdma_v4_4_2_ring_emit_ib β kernel API manual, bestie edition π
okay so you're deep in the amdgpu SDMA mines and you found sdma_v4_4_2_ring_emit_ib, a section 9 kernel API page. no cap, she's a tiny function with a big job. let's get into it π
πΈ NAME πΈ
sdma_v4_4_2_ring_emit_ib β schedule an IB on the DMA engine β¨
π¦ SYNOPSIS π¦
void sdma_v4_4_2_ring_emit_ib (struct amdgpu_ring *ring , struct
amdgpu_job *job , struct amdgpu_ib *ib , uint32_t flags );
literally that's the whole signature, copy it exactly, don't @ me π«Ά
π ARGUMENTS π
ringβ an amdgpu ring pointer π« the ring in question, bestiejobβ the job to retrieve vmid from π yes, the vmid comes from hereibβ the IB object to schedule πflagsβ unused π (she's just there for the vibes, don't pass anything meaningful expecting it to do stuff)
π DESCRIPTION π
Schedule an IB in the DMA ring. that's it, that's the whole description β¨ like, the function's entire personality is "put this IB on the DMA ring." iconic, concise, lowkey slay π₯
π SEE ALSO π
the kernel file lives at ./drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c β go read her for the real tea π
and here's the whole friend group, all of them section 9, all of them in the same file's orbit:
sdma_v4_4_2_init_microcode(9)sdma_v4_4_2_ring_get_rptr(9)sdma_v4_4_2_ring_get_wptr(9)sdma_v4_4_2_ring_set_wptr(9)sdma_v4_4_2_page_ring_get_wptr(9)sdma_v4_4_2_page_ring_set_wptr(9)sdma_v4_4_2_ring_emit_hdp_flush(9)sdma_v4_4_2_ring_emit_fence(9)sdma_v4_4_2_inst_gfx_stop(9)sdma_v4_4_2_inst_rlc_stop(9)sdma_v4_4_2_inst_page_stop(9)sdma_v4_4_2_inst_ctx_switch_enable(9)sdma_v4_4_2_inst_enable(9)sdma_v4_4_2_gfx_resume(9)sdma_v4_4_2_page_resume(9)sdma_v4_4_2_inst_rlc_resume(9)sdma_v4_4_2_inst_load_microcode(9)sdma_v4_4_2_inst_start(9)sdma_v4_4_2_ring_test_ring(9)sdma_v4_4_2_ring_test_ib(9)sdma_v4_4_2_vm_copy_pte(9)sdma_v4_4_2_vm_write_pte(9)sdma_v4_4_2_vm_set_pte_pde(9)sdma_v4_4_2_ring_pad_ib(9)sdma_v4_4_2_ring_emit_pipeline_sync(9)sdma_v4_4_2_ring_emit_vm_flush(9)sdma_v4_4_2_emit_copy_buffer(9)sdma_v4_4_2_emit_fill_buffer(9)sdma_v4_4_2_update_reset_mask(9)
π quick vibe check: flags is unused. that's not me being shady, that's just what the page says. fr fr.
that's the whole page, bestie π§π sourced from the kernel file under ./drivers/gpu/drm/amd/amdgpu, October 2026, manual name sdma_v4_4_2_ring_emit_ib(9) β stay hydrated, keep your pointers valid, and slay your DMA ring scheduling β¨ππ
π¦ 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