XenevaOS
Loading...
Searching...
No Matches
Public Attributes | List of all members
drm_ras_node Struct Reference

#include <drm_ras.h>

Public Attributes

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
 

Detailed Description

struct drm_ras_node - A DRM RAS Node

Member Data Documentation

◆ clear_error_counter

int(* drm_ras_node::clear_error_counter) (struct drm_ras_node *node, u32 error_id)

@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.

◆ device_name

const char* drm_ras_node::device_name

@device_name: Human-readable name of the device. Given by the driver.

◆ [struct]

struct { ... } drm_ras_node::error_counter_range

@error_counter_range: Range of valid Error IDs for this node.

◆ first

u32 drm_ras_node::first

@first: First valid Error ID.

◆ id

u32 drm_ras_node::id

@id: Unique identifier for the node. Dynamically assigned.

◆ last

u32 drm_ras_node::last

@last: Last valid Error ID. Mandatory entry.

◆ node_name

const char* drm_ras_node::node_name

@node_name: Human-readable name of the node. Given by the driver.

◆ priv

void* drm_ras_node::priv

@priv: Driver private data

◆ query_error_counter

int(* drm_ras_node::query_error_counter) (struct drm_ras_node *node, u32 error_id, const char **name, u32 *val)

@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.

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.

◆ type

enum drm_ras_node_type drm_ras_node::type

@type: Type of the node (enum drm_ras_node_type).


The documentation for this struct was generated from the following file: