David Herrmann | 6b7e45c | 2012-09-28 23:44:19 +0200 | [diff] [blame] | 1 | <?xml version='1.0'?> <!--*-nxml-*--> |
| 2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" |
| 3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
| 4 | |
| 5 | <!-- |
| 6 | Written 2012 by David Herrmann <dh.herrmann@googlemail.com> |
| 7 | Dedicated to the Public Domain |
| 8 | --> |
| 9 | |
| 10 | <refentry id="drmAvailable"> |
| 11 | <refentryinfo> |
| 12 | <title>Direct Rendering Manager</title> |
| 13 | <productname>libdrm</productname> |
| 14 | <date>September 2012</date> |
| 15 | <authorgroup> |
| 16 | <author> |
| 17 | <contrib>Developer</contrib> |
| 18 | <firstname>David</firstname> |
| 19 | <surname>Herrmann</surname> |
| 20 | <email>dh.herrmann@googlemail.com</email> |
| 21 | </author> |
| 22 | </authorgroup> |
| 23 | </refentryinfo> |
| 24 | |
| 25 | <refmeta> |
| 26 | <refentrytitle>drmAvailable</refentrytitle> |
| 27 | <manvolnum>3</manvolnum> |
| 28 | </refmeta> |
| 29 | |
| 30 | <refnamediv> |
| 31 | <refname>drmAvailable</refname> |
| 32 | <refpurpose>determine whether a DRM kernel driver has been |
| 33 | loaded</refpurpose> |
| 34 | </refnamediv> |
| 35 | |
| 36 | <refsynopsisdiv> |
| 37 | <funcsynopsis> |
| 38 | |
| 39 | <funcsynopsisinfo>#include <xf86drm.h></funcsynopsisinfo> |
| 40 | |
| 41 | <funcprototype> |
| 42 | <funcdef>int <function>drmAvailable</function></funcdef> |
| 43 | <paramdef>void</paramdef> |
| 44 | </funcprototype> |
| 45 | |
| 46 | </funcsynopsis> |
| 47 | </refsynopsisdiv> |
| 48 | |
| 49 | <refsect1> |
| 50 | <title>Description</title> |
| 51 | <para><function>drmAvailable</function> allows the caller to determine |
| 52 | whether a kernel DRM driver is loaded.</para> |
| 53 | </refsect1> |
| 54 | |
| 55 | <refsect1> |
| 56 | <title>Return Value</title> |
| 57 | <para><function>drmAvailable</function> returns 1 if a DRM driver is |
| 58 | currently loaded. Otherwise 0 is returned.</para> |
| 59 | </refsect1> |
| 60 | |
| 61 | <refsect1> |
| 62 | <title>Reporting Bugs</title> |
| 63 | <para>Bugs in this function should be reported to |
| 64 | http://bugs.freedesktop.org under the "Mesa" product, with "Other" or |
| 65 | "libdrm" as the component.</para> |
| 66 | </refsect1> |
| 67 | |
| 68 | <refsect1> |
| 69 | <title>See Also</title> |
| 70 | <para> |
| 71 | <citerefentry><refentrytitle>drm</refentrytitle><manvolnum>7</manvolnum></citerefentry>, |
| 72 | <citerefentry><refentrytitle>drmOpen</refentrytitle><manvolnum>3</manvolnum></citerefentry> |
| 73 | </para> |
| 74 | </refsect1> |
| 75 | </refentry> |