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">
6 Written 2012 by David Herrmann <dh.herrmann@googlemail.com>
7 Dedicated to the Public Domain
10 <refentry id="drmAvailable">
12 <title>Direct Rendering Manager</title>
13 <productname>libdrm</productname>
14 <date>September 2012</date>
17 <contrib>Developer</contrib>
18 <firstname>David</firstname>
19 <surname>Herrmann</surname>
20 <email>dh.herrmann@googlemail.com</email>
26 <refentrytitle>drmAvailable</refentrytitle>
27 <manvolnum>3</manvolnum>
31 <refname>drmAvailable</refname>
32 <refpurpose>determine whether a DRM kernel driver has been
39 <funcsynopsisinfo>#include <xf86drm.h></funcsynopsisinfo>
42 <funcdef>int <function>drmAvailable</function></funcdef>
43 <paramdef>void</paramdef>
50 <title>Description</title>
51 <para><function>drmAvailable</function> allows the caller to determine
52 whether a kernel DRM driver is loaded.</para>
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>
62 <title>Reporting Bugs</title>
63 <para>Bugs in this function should be reported to
64 https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&component=libdrm
65 under the "DRI" product, component "libdrm"</para>
69 <title>See Also</title>
71 <citerefentry><refentrytitle>drm</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
72 <citerefentry><refentrytitle>drmOpen</refentrytitle><manvolnum>3</manvolnum></citerefentry>