DRMAVAILABLE(3)

  .SH "NAME" drmAvailable - determine whether a DRM kernel driver has been loaded
  .SH "SYNOPSIS"

#include <xf86drm.h>

      .HP u int drmAvailable(void);

  .SH "DESCRIPTION"

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

  .SH "RETURN VALUE"

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

  .SH "REPORTING BUGS"

    .PP Bugs in this function should be reported to https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&component=libdrm under the "DRI" product, component "libdrm"

  .SH "SEE ALSO"

    .PP drm(7), drmOpen(3)