mesa-drm/man/drmAvailable.3.rst
Simon Ser 05b0a955d3
man: convert to reStructuredText
DocBook makes it hard to write and maintain docs. Hopefully
reStructuredText can make this less painful.

The man pages were converted from DocBook to reStructuredText via
Pandoc:

    pandoc -s -f docbook -t rst -o man/drm.7.rst man/drm.xml

And then manual editing to fixup e.g. references to other man pages. To
compare the result with the DocBook version, this command was used:

    rst2man man/drm-kms.7.rst | man -l -

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
2020-12-10 10:17:19 +01:00

41 lines
764 B
ReStructuredText

============
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/drm/-/issues
See Also
========
**drm**\ (7), **drmOpen**\ (3)