On Thursday, July 13th, 2023 at 07:09, Thomas Zimmermann <tzimmermann@xxxxxxx> wrote: > > + * Starting from kernel version 6.6, both &DRM_PRIME_CAP_IMPORT and > > + * &DRM_PRIME_CAP_EXPORT are always advertised. > > + * > > When people port these changes into their trees the version becomes > meaningless. There are so many "enterprise kernels" that combine whole > subsystems from different upstream releases. > > That makes me wonder if such documentation makes sense. We want to avoid > a situation where userspace does > > if (v6.6) > do() > else if (test_flags()) > do() Daniel Vetter asked for specific kernel versions in b603e810f740 ("drm/uapi: document kernel capabilities"). It allows user-space to figure out how widespread a cap is.