Next, we will write the graphics application code, which uses the graphics library to render graphics.
Best regards
dev = drm_dev_alloc(driver, &pdev->dev); if (!dev) return NULL; Hands On Projects For The Linux Graphics Subsystem