1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>ioctl VIDIOC_LOG_STATUS</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="LINUX MEDIA INFRASTRUCTURE API"><link rel="up" href="user-func.html" title="Appendix A. Function Reference"><link rel="prev" href="vidioc-g-tuner.html" title="ioctl VIDIOC_G_TUNER, VIDIOC_S_TUNER"><link rel="next" href="vidioc-overlay.html" title="ioctl VIDIOC_OVERLAY"></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">ioctl VIDIOC_LOG_STATUS</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="vidioc-g-tuner.html">Prev</a> </td><th width="60%" align="center">Appendix A. Function Reference</th><td width="20%" align="right"> <a accesskey="n" href="vidioc-overlay.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="vidioc-log-status"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>VIDIOC_LOG_STATUS — Log driver status information</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">ioctl</b>(</code></td><td>int <var class="pdparam">fd</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">request</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1115567596"></a><h2>Description</h2><p>As the video/audio devices become more complicated it 2becomes harder to debug problems. When this ioctl is called the driver 3will output the current device status to the kernel log. This is 4particular useful when dealing with problems like no sound, no video 5and incorrectly tuned channels. Also many modern devices autodetect 6video and audio standards and this ioctl will report what the device 7thinks what the standard is. Mismatches may give an indication where 8the problem is.</p><p>This ioctl is optional and not all drivers support it. It 9was introduced in Linux 2.6.15.</p></div><div class="refsect1"><a name="idp1115568948"></a><h2>Return Value</h2><p>On success <span class="returnvalue">0</span> is returned, on error <span class="returnvalue">-1</span> and the <code class="varname">errno</code> variable is set appropriately. The generic error codes are described at the <a class="link" href="gen_errors.html#gen-errors" title="Table 19.1. Generic error codes">Generic Error Codes</a> chapter.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="vidioc-g-tuner.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="user-func.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="vidioc-overlay.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ioctl VIDIOC_G_TUNER, VIDIOC_S_TUNER </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> ioctl VIDIOC_OVERLAY</td></tr></table></div></body></html> 10