drmAvailable(3)

drmAvailable3

Determine whether a drm kernel driver has been loaded

Usage

#include <xf86drm.h>

int drmAvailable(void);

Overview

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.

Releases

8 releases since Debian 7 (Wheezy); the text changed 7 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13
  8. Arch

Reporting Bugs

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

From libdrm 2.4.134-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.