amdgpu_devic..._version_cmp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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_device pointer, 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


xoxo, your Kernel API Manual bestie πŸ’– β€” source/version ./drivers/gpu/drm/amd/amdgpu, dated October 2026. 🫢

πŸ“¦ where this page comes from