xe_ras_get_counter(9)
β¨ 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 anenum drm_xe_ras_error_severityiykyk π₯componentβ which error component you're asking about, typed asenum drm_xe_ras_error_componentπvalueβ the counter value itself, coming back at you through au32 *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 π
- Kernel file
./drivers/gpu/drm/xe/xe_ras.c xe_ras_process_errors(9)xe_ras_clear_counter(9)GPU Health Indicator(9)xe_ras_init(9)
π 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
- 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