xe_ras_get_counter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ xe_ras_get_counter(9) ✨

okay so bestie, this is a page straight out of the Kernel API Manual and it's genuinely one of the cutest little getters you'll ever meet πŸ’– it's called xe_ras_get_counter and it does exactly one thing: it gets you an error counter value. no cap. let's go 🫢


🌸 SYNOPSIS 🌸

int xe_ras_get_counter (struct xe_device *xe , u8 severity , u8
component , u32 *value );

like, look at her. four params, returns an int, zero drama ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • xe β€” your Xe device instance. the main character, the whole vibe, the thing you're querying πŸ¦‹
  • severity β€” the error severity you wanna look up, and it's an enum drm_xe_ras_error_severity iykyk πŸ”₯
  • component β€” which error component you're asking about, typed as enum drm_xe_ras_error_component πŸ’…
  • value β€” the counter value itself, coming back at you through a u32 * pointer πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

this function retrieves the value of a specific error counter based on the error severity and component. that's it, that's the whole plot 🎬 you hand it the severity, you hand it the component, it fills in *value with the counter. lowkey iconic.


⭐ RETURN ⭐

0 on success πŸŽ‰ and a negative error code on failure 😭 (yes, negative, that's the whole point, check it, bestie).


🌈 SEE ALSO 🌈


πŸ’€ reminder bestie: negative error code on failure. if you're out here treating any nonzero as "fine", that's not the vibe check you think it is.

k that's the whole page, go forth and read your counters πŸ‘‘ this lil beauty lives over in ./drivers/gpu/drm/xe and the page is dated October 2026 β€” mwah, ily, bye πŸ§šπŸ’œπŸ“

πŸ“¦ where this page comes from