#include <xf86drm.h>
drmAvailable
drmAvailable returns 1 if a DRM driver is currently loaded. Otherwise 0 is returned.
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"