• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 &lt;xf86drm.h&gt;</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      https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&amp;component=libdrm
65      under the "DRI" product, component "libdrm"</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>
76