cik_ctx_switch_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cik_ctx_switch_enable β€” the Kernel API Manual page, bestie edition

okay so real talk, this is cik_ctx_switch_enable(9) from the Kernel API Manual and it's lowkey one of those tiny functions that does exactly one job and does it slayfully. it's the one that stops the async dma engines context switch. that's the whole vibe. πŸŽ€


✨ NAME ✨

cik_ctx_switch_enable β€” stop the async dma engines context switch

like, that's literally her job description and she's not gonna elaborate.


✨ SYNOPSIS ✨

void cik_ctx_switch_enable (struct amdgpu_device *adev , bool enable );

no return value, no surprises, just a void and two args. she's not giving you anything back and honestly? respect. 🫢


✨ ARGUMENTS ✨

  • adev β€” an amdgpu_device pointer, aka your whole entire GPU situation. you gotta hand her the device, she's not gonna go find it herself. πŸ’…
  • enable β€” a bool that says enable/disable the DMA MEs context switch. so it's a yes-or-no, a vibe check passed in as a parameter. true vs false, main character energy either way.

✨ DESCRIPTION ✨

Halt or unhalt the async dma engines context switch (VI). πŸ¦‹

that's it. that's the whole function. you're either putting the async dma engines' context switch on pause or you're letting it live its life again. halt πŸ›‘ or unhalt ▢️. and yes, that (VI) is doing important work β€” it's part of the description, not me being cute, so don't come for me.

ngl it's giving "small function, big responsibility" β€” if you flip this the wrong way at the wrong time things are gonna be weird, so know what you're doing before you halt somebody. 😭

🌈 SEE ALSO 🌈

the source lives in the kernel file ./drivers/gpu/drm/amd/amdgpu/cik_sdma.c β€” go read it, it's right there, iykyk.

and here's the whole friend group, every single one of them, no cap:

that's 24 little besties plus the source file itself. the way that entire sdma roster showed up at the function's birthday party πŸ’€ obsESSED.


and that's the page, babes 🧚✨ β€” this one comes from ./drivers/gpu/drm/amd/amdgpu and it's dated October 2026, so screenshot it, cite it, print it out and put it on your wall. periodt. πŸ’œπŸŒΈ

πŸ“¦ where this page comes from