23.03.2021 17:43, Mikko Perttunen пишет:
FWIW, I would've been fine with stashing all of this into drm.c as well since the rest of the UAPI is in that already. The churn in this patch is reasonably small, but it would've been even less if this was just all in drm.c.
I think we shouldn't have the uapi in drm.c -- it just makes the file a bit of a dumping ground. I think drm.c should have the code that relates to initialization and initial registration with DRM.
+1 drm.c is already very unmanageable / difficult to follow, it absolutely must be split up.