For The Linux Graphics Subsystem [new]: Hands On Projects

Atomic modesetting is the standard in modern Linux (used by Wayland compositors). It allows testing all display parameters together and guarantees a consistent frame.

static int minigpu_probe(struct platform_device *pdev) struct drm_device *drm = drm_dev_alloc(&minigpu_driver, &pdev->dev); drm_simple_display_pipe_init(drm, &pipe, &simple_funcs, formats, ARRAY_SIZE(formats), NULL, &connector); platform_set_drvdata(pdev, drm); return drm_dev_register(drm, 0); Hands On Projects For The Linux Graphics Subsystem