STRUCT DRM_RAS_NODE(9)
π NAME π
okay bestie, welcome to the struct drm_ras_node(9) page from the Kernel API Manual β yes, that manual name is literally in the header, and we're folding it in right here because this is the DRM RAS Node manual and it's iconic β¨
struct drm_ras_node β A DRM RAS Node. That's the name. That's the whole name. no cap π
β¨ SYNOPSIS β¨
okay so here's the struct in all its main-character glory, copied exactly, don't @ me π«Ά
struct drm_ras_node {
u32 id;
const char *device_name;
const char *node_name;
enum drm_ras_node_type type;
struct {
u32 first;
u32 last;
} error_counter_range;
int (*query_error_counter)(struct drm_ras_node *node, u32 error_id,
const char **name, u32 *val);
int (*clear_error_counter)(struct drm_ras_node *node, u32 error_id);
void *priv;
};
π Members π
idβ Unique identifier for the node. Dynamically assigned. πβ¨ lowkey the node's whole identity.device_nameβ Human-readable name of the device. Given by the driver. π·οΈ so the driver picks the vibe.node_nameβ Human-readable name of the node. Given by the driver. π also driver-chosen, fr fr.typeβ Type of the node (enum drm_ras_node_type). π the enum is right there, bestie.error_counter_rangeβ Range of valid Error IDs for this node. π it's givingfirsttolast, periodt.query_error_counterβ This callback is used by drm-ras to query a specific error counter. Used for input check and to iterate all error counters in a node. π
Driver should expect query_error_counter to be called with error_id from error_counter_range.first to error_counter_range.last. π«‘
The query_error_counter is a mandatory callback for error_counter_node. β οΈ mandatory means mandatory, bestie β don't skip it.
Returns: 0 on success, -ENOENT when error_id is not supported as an indication that drm_ras should silently skip this entry. Used for supporting non-contiguous error ranges. Driver is responsible for maintaining the list of supported error IDs in the range of first to last. Other negative values on errors that should terminate the netlink query. π
clear_error_counterβ This callback is used by drm_ras to clear a specific error counter. Driver should implement this callback to support clearing error counters of a node. π§Ή
Returns: 0 on success, negative error code on failure. π
privβ Driver private data. π literally the driver's private stash, iykyk.
bestie,query_error_counteris the mandatory one forerror_counter_nodeβ that's not a vibe check you can fail, fr fr πβ¨
π¦ SEE ALSO π¦
Kernel file ./include/drm/drm_ras.h β go read it, it's giving source-of-truth energy π
mwah π this page comes from the ./include/drm corner of the kernel, October 2026 edition, and it's literally titled struct drm_ras_node(9) β slay and goodbye π«Άβ¨
π¦ 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