amdgpu_ras_...count_helper(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ amdgpu_ras_query_error_count_helper ✨

okay bestie so this is a page straight out of the Kernel API Manual (that's the manual name, keep it in your back pocket πŸ’…) and it's all about one little function in the AMDGPU RAS world. Sit down, hydrate, let's go 🫢


🌸 NAME 🌸

amdgpu_ras_query_error_count_helper β€” literally just Get error counter for specific IP. That's the whole job. It fetches the error counter for a specific IP, no cap.


πŸŽ€ SYNOPSIS πŸŽ€

int amdgpu_ras_query_error_count_helper (struct amdgpu_device *adev ,
       unsigned long *ce_count , unsigned long *ue_count , struct ras_query_if
       *query_info );

that's the signature, copy it exactly, don't freestyle it πŸ™ˆ


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adev β€” pointer to AMD GPU device. like, the device. the main character πŸ‘‘
  • ce_count β€” pointer to an integer that gets set to the count of correctible errors. (yes, spelled correctible in the original, we're keeping the spelling, iykyk)
  • ue_count β€” pointer to an integer that gets set to the count of uncorrectible errors. also keeping that spelling, we don't fix what the kernel wrote πŸ’€
  • query_info β€” pointer to ras_query_if. that's it, that's the whole description, she's lowkey mysterious 🧚

🌈 DESCRIPTION 🌈

so the deal is: it returns 0 when the query succeeds β€” or it just does nothing β€” and otherwise it returns an error on failures. that's the vibe check, fr fr. success = 0, failure = error, nothing in between ✨


πŸ’œ SEE ALSO πŸ’œ

go read those too, they're the friend group 🫢


and that's the page!! it lives under ./drivers/gpu/drm/amd/amdgpu and the version stamp is October 2026 β€” so yeah, from the future, iconic ⭐ thanks for reading bestie, you ate πŸ’–πŸŽ€πŸ”₯

πŸ“¦ where this page comes from