1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>drm_ioctl_flags</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="ch02s08.html#id-1.3.4.12.4" title="IOCTLs"><link rel="prev" href="API-drm-ioctl.html" title="drm_ioctl"><link rel="next" href="ch02s09.html" title="Legacy Support Code"></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">drm_ioctl_flags</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-drm-ioctl.html">Prev</a> </td><th width="60%" align="center">IOCTLs</th><td width="20%" align="right"> <a accesskey="n" href="ch02s09.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-drm-ioctl-flags"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>drm_ioctl_flags — 2 Check for core ioctl and return ioctl permission flags 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">bool <b class="fsfunc">drm_ioctl_flags </b>(</code></td><td>unsigned int <var class="pdparam">nr</var>, </td></tr><tr><td> </td><td>unsigned int * <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="id-1.3.4.12.4.9.5"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>nr</code></em></span></dt><dd><p> 4 ioctl number 5 </p></dd><dt><span class="term"><em class="parameter"><code>flags</code></em></span></dt><dd><p> 6 where to return the ioctl permission flags 7 </p></dd></dl></div></div><div class="refsect1"><a name="id-1.3.4.12.4.9.6"></a><h2>Description</h2><p> 8 This ioctl is only used by the vmwgfx driver to augment the access checks 9 done by the drm core and insofar a pretty decent layering violation. This 10 shouldn't be used by any drivers. 11</p></div><div class="refsect1"><a name="id-1.3.4.12.4.9.7"></a><h2>Returns</h2><p> 12 True if the <em class="parameter"><code>nr</code></em> corresponds to a DRM core ioctl numer, false otherwise. 13</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-drm-ioctl.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch02s08.html#id-1.3.4.12.4">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch02s09.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">drm_ioctl</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Legacy Support Code</td></tr></table></div></body></html> 14