table of contents
other versions
- jessie 2.4.58-2
- jessie-backports 2.4.74-1~bpo8+1
- stretch 2.4.74-1
- testing 2.4.95-1
- stretch-backports 2.4.95-1~bpo9+1
- unstable 2.4.97-1
DRMMODEGETRESOURCES(3) | Direct Rendering Manager | DRMMODEGETRESOURCES(3) |
NAME¶
drmModeGetResources - retrieve current display configuration informationSYNOPSIS¶
#include <xf86drm.h>
#include <xf86drmMode.h>
drmModeResPtr
drmModeGetResources(int fd);
DESCRIPTION¶
drmModeGetResources allocates, populates, and returns a drmModeRes structure containing information about the current display configuration. The structure contains the following fields:typedef struct _drmModeRes { int count_fbs; uint32_t *fbs; int count_crtcs; uint32_t *crtcs; int count_connectors; uint32_t *connectors; int count_encoders; uint32_t *encoders; uint32_t min_width, max_width; uint32_t min_height, max_height; } drmModeRes, *drmModeResPtr;
RETURN VALUE¶
drmModeGetResources returns a drmModeRes structure pointer on success, NULL on failure. The returned structure must be freed with drmModeFreeResources(3).REPORTING BUGS¶
Bugs in this function should be reported to http://bugs.freedesktop.org under the "Mesa" product, with "Other" or "libdrm" as the component.SEE ALSO¶
drm(7), drm-kms(7), drmModeGetFB(3), drmModeAddFB(3), drmModeAddFB2(3), drmModeRmFB(3), drmModeDirtyFB(3), drmModeGetCrtc(3), drmModeSetCrtc(3), drmModeGetEncoder(3), drmModeGetConnector(3)September 2012 | libdrm |