amdgpu_devic..._version_cmp(9)
β¨ NAME β¨
amdgpu_device_ip_block_version_cmp β the version-checking bestie for amdgpu IP blocks, straight outta the Kernel API Manual. This is the page for amdgpu_devic..._version_cmp(9), yes the title got a little truncated, but we move. π
πΈ SYNOPSIS πΈ
int amdgpu_device_ip_block_version_cmp (struct amdgpu_device *adev ,
enum amd_ip_block_type type , u32 major , u32 minor );
π ARGUMENTS π
adevβamdgpu_devicepointer, aka the device bestie you're working with.typeβenum amd_ip_block_type, the IP block type in question.majorβ major version.minorβ minor version.
π DESCRIPTION π
okay so real talk: this returns 0 if the version is equal or greater, and returns 1 if it's smaller or the ip_block doesn't exist. That's the whole vibe check. β¨
no cap: if the ip_block is missing, you get 1. periodt.
π¦ SEE ALSO π¦
Kernel file: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ip.c
amdgpu_device_ip_get_ip_block(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_wait_for_idle(9)amdgpu_device_ip_is_valid(9)amdgpu_ip_from_ring(9)amdgpu_ring_mask_from_ip(9)amdgpu_device_ip_soft_reset(9)
xoxo, your Kernel API Manual bestie π β source/version ./drivers/gpu/drm/amd/amdgpu, dated October 2026. π«Ά
π¦ 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