File: drmAvailable.3.rst

package info (click to toggle)
libdrm 2.4.131-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,016 kB
  • sloc: ansic: 55,374; python: 148; makefile: 124; sh: 14
file content (41 lines) | stat: -rw-r--r-- 767 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
============
drmAvailable
============

-----------------------------------------------------
determine whether a DRM kernel driver has been loaded
-----------------------------------------------------

:Date: September 2012
:Manual section: 3
:Manual group: Direct Rendering Manager

Synopsis
========

``#include <xf86drm.h>``

``int drmAvailable(void);``

Description
===========

``drmAvailable`` allows the caller to determine whether a kernel DRM
driver is loaded.

Return Value
============

``drmAvailable`` returns 1 if a DRM driver is currently loaded.
Otherwise 0 is returned.

Reporting Bugs
==============

Bugs in this function should be reported to
https://gitlab.freedesktop.org/mesa/libdrm/-/issues

See Also
========

**drm**\ (7), **drmOpen**\ (3)