amdgpu_devic...ait_for_idle(9)
π amdgpu_devic...ait_for_idle(9) β Kernel API Manual β¨
okay so bestie, welcome to the glow-up of your fave kernel API manual page β it's amdgpu_devic...ait_for_idle(9) from the Kernel API Manual, and honestly? it's giving "small function, big responsibility." let's get into it π«Ά
β¨ NAME β¨
amdgpu_device_ip_wait_for_idle β literally just... wait for idle, no cap π€
πΈ SYNOPSIS πΈ
int amdgpu_device_ip_wait_for_idle (struct amdgpu_device *adev , enum
amd_ip_block_type block_type );
like, that's the whole vibe. you hand it a device and an IP block type and it goes "mmkay lemme check if that thing's chillin' yet" π₯
π ARGUMENTS π
adevβ anamdgpu_devicepointer, aka the main character of this whole story πblock_typeβ the type of hardware IP you're checking on (SMU, GFX, UVD, etc.) β yes bestie, the "etc." is doing a lot of heavy lifting there but that's what the page says π
π¦ DESCRIPTION π¦
so basically this function waits for the requested hardware IP to be idle β like, it's standing outside the door with its arms crossed until the IP stops doing stuff π
it returns 0 for success π or a negative error code on failure π (and yeah, negative error codes are the kernel's love language, iykyk).
ngl, no extra lore on which error codes β the page keeps it vague, and we're not about to make stuff up. periodt π
π§ SEE ALSO π§
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_ip.cπ amdgpu_device_ip_get_ip_block(9)amdgpu_device_ip_block_version_cmp(9)amdgpu_device_ip_block_add(9)amdgpu_device_ip_set_clockgating_state(9)amdgpu_device_ip_set_powergating_state(9)amdgpu_device_ip_get_clockgating_state(9)amdgpu_device_ip_is_valid(9)amdgpu_ip_from_ring(9)amdgpu_ring_mask_from_ip(9)amdgpu_device_ip_soft_reset(9)
and that's the whole page, bestie β you ate that reading session πβ¨
π cute little sign-off: this lil guy lives at./drivers/gpu/drm/amd/amdgpu, dated October 2026, and its full handle isamdgpu_devic...ait_for_idle(9). slay πβ
π¦ 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