sdma_v7_0_ctx_switch_enable(9)
π¦ sdma_v7_0_ctx_switch_enable β the Kernel API Manual glow-up π¦
okay bestie so you found a page in the Kernel API Manual, and it's about sdma_v7_0_ctx_switch_enable β literally the function that halts (or un-halts!!) the async dma engines context switch π
ngl it's giving "tiny function, big job" and we love that for it.
β¨ NAME β¨
sdma_v7_0_ctx_switch_enable β stop the async dma engines context switch π
like yes that's the whole name, no cap, that's the vibe.
πΈ SYNOPSIS πΈ
void sdma_v7_0_ctx_switch_enable (struct amdgpu_device *adev , bool
enable );
returns nothing (it's a void, she doesn't owe you a return value π), takes an amdgpu_device pointer and a bool. that's it. that's the whole signature. periodt.
π ARGUMENTS π
adevβ anamdgpu_devicepointer π«Ά that's the GPU device handle you're working with, bestie, don't forget to actually pass it.enableβ enable/disable the DMA MEs context switch β¨ yes it's abool, yes it does both directions, it's a multitalented icon.
π DESCRIPTION π
Halt or unhalt the async dma engines context switch π
that's it, that's the whole thing β she halts, she unhalts, she's booked and busy. main character energy fr fr π₯
π SEE ALSO π
the kernel file where all this lives, lowkey the mothership:
./drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
and the whole friend group (yes we're listing every single one, iykyk, we do not skip members of the squad π):
sdma_v7_0_ring_get_rptr(9)sdma_v7_0_ring_get_wptr(9)sdma_v7_0_ring_set_wptr(9)sdma_v7_0_ring_emit_ib(9)sdma_v7_0_ring_emit_mem_sync(9)sdma_v7_0_ring_emit_hdp_flush(9)sdma_v7_0_ring_emit_fence(9)sdma_v7_0_gfx_stop(9)sdma_v7_0_rlc_stop(9)sdma_v7_0_enable(9)sdma_v7_0_gfx_resume_instance(9)sdma_v7_0_gfx_resume(9)sdma_v7_0_rlc_resume(9)sdma_v7_0_load_microcode(9)sdma_v7_0_start(9)sdma_v7_0_ring_test_ring(9)sdma_v7_0_ring_test_ib(9)sdma_v7_0_vm_copy_pte(9)sdma_v7_0_vm_write_pte(9)sdma_v7_0_vm_set_pte_pde(9)sdma_v7_0_ring_pad_ib(9)sdma_v7_0_ring_emit_pipeline_sync(9)sdma_v7_0_ring_emit_vm_flush(9)sdma_v7_0_emit_copy_buffer(9)sdma_v7_0_emit_fill_buffer(9)
ok that's the whole page bestie, you ate that π go forth and halt some context switches responsibly π
and the cute little sign-off: this one comes from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, under the manual name sdma_v7_0_ctx_switch_enable(9) β slay, see you in the next manpage πβ¨π
π¦ 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