struct vgasr_priv — vga_switcheroo private data
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; enum vga_switcheroo_handler_flags_t handler_flags; struct mutex mux_hw_lock; int old_ddc_owner; };
whether vga_switcheroo is enabled. Prerequisite is the registration of two GPUs and a handler
whether a delayed switch is pending
client to which a delayed switch is pending
directory for vga_switcheroo debugfs interface
file for vga_switcheroo debugfs interface
number of registered GPUs (counting only vga clients, not audio clients)
list of registered clients
registered handler
flags of registered handler
protects mux state (in particular while DDC lines are temporarily switched)
client to which DDC lines will be switched back on unlock