Linux Manuals · Linux Manuals session 3 drmAvailable (3) Linux Manual Page ByLinux Manual Posted onApr 23, 2026 drmAvailable – determine whether a DRM kernel driver has been loaded Synopsis#include <xf86drm.h> int drmAvailable(void);DescriptiondrmAvailable allows the caller to determine whether a kernel DRM driver is loaded. Return ValuedrmAvailable returns 1 if a DRM driver is currently loaded. Otherwise 0 is returned. Reporting BugsBugs in this function should be reported to http://bugs.freedesktop.org under the "Mesa" product, with "Other" or "libdrm" as the component. See Alsodrm(7), drmOpen(3)