aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/backend/drm.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-19 15:46:28 -0400
committerDrew DeVault <sir@cmpwn.com>2018-03-19 15:46:28 -0400
commit8d490fdb34ad4374b3ab144f1b46296eb81ad316 (patch)
treeb6c2b2be7bbb871a20c99a8b8b33b2f082666e00 /include/wlr/backend/drm.h
parentbfc9b13dcd19d89c619281b4a7ad66c08116062c (diff)
Write some more docs
Diffstat (limited to 'include/wlr/backend/drm.h')
-rw-r--r--include/wlr/backend/drm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wlr/backend/drm.h b/include/wlr/backend/drm.h
index 90460647..0c9e5c8b 100644
--- a/include/wlr/backend/drm.h
+++ b/include/wlr/backend/drm.h
@@ -6,6 +6,13 @@
#include <wlr/backend/session.h>
#include <wlr/types/wlr_output.h>
+/**
+ * Creates a DRM backend using the specified GPU file descriptor (typically from
+ * a device node in /dev/dri).
+ *
+ * To slave this to another DRM backend, pass it as the parent (which _must_ be
+ * a DRM backend, other kinds of backends raise SIGABRT).
+ */
struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
struct wlr_session *session, int gpu_fd, struct wlr_backend *parent);