1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct vgasr_priv</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux GPU Driver Developer's Guide"><link rel="up" href="privstructures.html" title="Chapter 9. Private structures"><link rel="prev" href="privstructures.html" title="Chapter 9. Private structures"><link rel="next" href="API-struct-vga-switcheroo-client.html" title="struct vga_switcheroo_client"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct vgasr_priv</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="privstructures.html">Prev</a> </td><th width="60%" align="center">Chapter 9. Private structures</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-vga-switcheroo-client.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-vgasr-priv"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct vgasr_priv — 2 vga_switcheroo private data 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct vgasr_priv { 5 bool active; 6 bool delayed_switch_active; 7 enum vga_switcheroo_client_id delayed_client_id; 8 struct dentry * debugfs_root; 9 struct dentry * switch_file; 10 int registered_clients; 11 struct list_head clients; 12 const struct vga_switcheroo_handler * handler; 13}; </pre></div><div class="refsect1"><a name="id-1.5.7.2.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">active</span></dt><dd><p> 14whether vga_switcheroo is enabled. 15Prerequisite is the registration of two GPUs and a handler 16 </p></dd><dt><span class="term">delayed_switch_active</span></dt><dd><p> 17whether a delayed switch is pending 18 </p></dd><dt><span class="term">delayed_client_id</span></dt><dd><p> 19client to which a delayed switch is pending 20 </p></dd><dt><span class="term">debugfs_root</span></dt><dd><p> 21directory for vga_switcheroo debugfs interface 22 </p></dd><dt><span class="term">switch_file</span></dt><dd><p> 23file for vga_switcheroo debugfs interface 24 </p></dd><dt><span class="term">registered_clients</span></dt><dd><p> 25number of registered GPUs 26(counting only vga clients, not audio clients) 27 </p></dd><dt><span class="term">clients</span></dt><dd><p> 28list of registered clients 29 </p></dd><dt><span class="term">handler</span></dt><dd><p> 30registered handler 31 </p></dd></dl></div></div><div class="refsect1"><a name="id-1.5.7.2.6"></a><h2>Description</h2><p> 32 vga_switcheroo private data. Currently only one vga_switcheroo instance 33 per system is supported. 34</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="privstructures.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="privstructures.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-vga-switcheroo-client.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 9. Private structures </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">struct vga_switcheroo_client</span></td></tr></table></div></body></html> 35