1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>vga_switcheroo_process_delayed_switch</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="pubfunctions.html" title="Chapter 6. Public functions"><link rel="prev" href="API-vga-switcheroo-client-fb-set.html" title="vga_switcheroo_client_fb_set"><link rel="next" href="API-vga-switcheroo-set-dynamic-switch.html" title="vga_switcheroo_set_dynamic_switch"></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">vga_switcheroo_process_delayed_switch</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-vga-switcheroo-client-fb-set.html">Prev</a> </td><th width="60%" align="center">Chapter 6. Public functions</th><td width="20%" align="right"> <a accesskey="n" href="API-vga-switcheroo-set-dynamic-switch.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-vga-switcheroo-process-delayed-switch"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>vga_switcheroo_process_delayed_switch — 2 helper for delayed switching 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">vga_switcheroo_process_delayed_switch </b>(</code></td><td> <var class="pdparam">void</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="id-1.5.4.9.5"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>void</code></em></span></dt><dd><p> 4 no arguments 5 </p></dd></dl></div></div><div class="refsect1"><a name="id-1.5.4.9.6"></a><h2>Manual switching and manual power control</h2><p> 6 </p><p> 7 8 Process a delayed switch if one is pending. DRM drivers should call this 9 from their ->lastclose callback. 10</p></div><div class="refsect1"><a name="id-1.5.4.9.7"></a><h2>Return</h2><p> 11 0 on success. -EINVAL if no delayed switch is pending, if the client 12 has unregistered in the meantime or if there are other clients blocking the 13 switch. If the actual switch fails, an error is reported and 0 is returned. 14</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-vga-switcheroo-client-fb-set.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="pubfunctions.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-vga-switcheroo-set-dynamic-switch.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">vga_switcheroo_client_fb_set</span> </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">vga_switcheroo_set_dynamic_switch</span></td></tr></table></div></body></html> 15