Hands On Projects For The Linux Graphics Subsystem [cracked]
(Cyclic Redundancy Check) support to verify frame integrity.
#include <fcntl.h> #include <xf86drm.h> #include <xf86drmMode.h> int main() int fd = open("/dev/dri/card0", O_RDWR); drmModeRes *res = drmModeGetResources(fd); struct drm_mode_create_dumb create = .width = 1024, .height = 768, .bpp = 32 ; drmIoctl(fd, DRM_IOCTL_MODE_CREATE_DUMB, &create); printf("Dumb buffer size: %d bytes, pitch: %d\n", create.size, create.pitch); return 0; Hands On Projects For The Linux Graphics Subsystem
Take control of the monitor directly from the (Cyclic Redundancy Check) support to verify frame integrity
