[PATCH libdrm v2 05/25] tegra: Add flink helpers
Dmitry Osipenko
digetx at gmail.com
Thu Feb 24 17:18:00 UTC 2022
17.02.2022 22:16, Thierry Reding пишет:
> +int drm_tegra_bo_get_name(struct drm_tegra_bo *bo, uint32_t *name);
> +int drm_tegra_bo_open(struct drm_tegra *drm, uint32_t name, uint32_t flags,
> + struct drm_tegra_bo **bop);
drm_tegra_bo_open() isn't a very good name for a function. How will you
name dmabuf and handle variants?
In grate-drive we're using these names:
drm_tegra_bo_from_name
drm_tegra_bo_from_dmabuf
drm_tegra_bo_from_handle
I suggest to use more meaningful function names before will be too late,
especially given that this is the upstream libdrm.
More information about the dri-devel
mailing list