struct vgasr_priv
Prev | Chapter 9. Private structures | Next

## Name

struct vgasr_priv — vga_switcheroo private data

## Synopsis

    struct vgasr_priv {
      bool active;
      bool delayed_switch_active;
      enum vga_switcheroo_client_id delayed_client_id;
      struct dentry * debugfs_root;
      struct dentry * switch_file;
      int registered_clients;
      struct list_head clients;
      const struct vga_switcheroo_handler * handler;
    };

## Members

active

  whether vga_switcheroo is enabled. Prerequisite is the registration of two GPUs and a handler

delayed_switch_active

  whether a delayed switch is pending

delayed_client_id

  client to which a delayed switch is pending

debugfs_root

  directory for vga_switcheroo debugfs interface

switch_file

  file for vga_switcheroo debugfs interface

registered_clients

  number of registered GPUs (counting only vga clients, not audio clients)

clients

  list of registered clients

handler

  registered handler

## Description

vga_switcheroo private data. Currently only one vga_switcheroo instance per system is supported.

Prev | Up | Next
Chapter 9. Private structures | Home | struct vga_switcheroo_client