summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-05-09 12:18:09 -0700
committerKeith Packard <keithp@keithp.com>2008-05-09 12:18:09 -0700
commit1e26ca44c9f3e8a1a30652aa860b405e0248aae1 (patch)
treebdebd7fce23e6608c3a174195a58590cb27c5916 /shared-core
parentec75369b402235d74b06b08907572050962075a6 (diff)
[gem] API cleanup. allocate->create unreference->close name->flink
Make the API names a bit more consistent.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/drm.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h
index f1430f59..7b69a634 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -961,7 +961,7 @@ struct drm_mm_info_arg {
};
-struct drm_gem_alloc {
+struct drm_gem_create {
/**
* Requested size for the object.
*
@@ -977,8 +977,8 @@ struct drm_gem_alloc {
uint32_t pad;
};
-struct drm_gem_unreference {
- /** Handle of the object to be unreferenced. */
+struct drm_gem_close {
+ /** Handle of the object to be closed. */
uint32_t handle;
uint32_t pad;
};
@@ -1023,7 +1023,7 @@ struct drm_gem_mmap {
uint64_t addr_ptr; /* void *, but pointers are not 32/64 compatible */
};
-struct drm_gem_name {
+struct drm_gem_flink {
/** Handle for the object being named */
uint32_t handle;
@@ -1123,12 +1123,12 @@ struct drm_gem_set_domain {
#define DRM_IOCTL_UPDATE_DRAW DRM_IOW(0x3f, struct drm_update_draw)
-#define DRM_IOCTL_GEM_ALLOC DRM_IOWR(0x09, struct drm_gem_alloc)
-#define DRM_IOCTL_GEM_UNREFERENCE DRM_IOW (0x0a, struct drm_gem_unreference)
+#define DRM_IOCTL_GEM_CREATE DRM_IOWR(0x09, struct drm_gem_create)
+#define DRM_IOCTL_GEM_CLOSE DRM_IOW (0x0a, struct drm_gem_close)
#define DRM_IOCTL_GEM_PREAD DRM_IOW (0x0b, struct drm_gem_pread)
#define DRM_IOCTL_GEM_PWRITE DRM_IOW (0x0c, struct drm_gem_pwrite)
#define DRM_IOCTL_GEM_MMAP DRM_IOWR(0x0d, struct drm_gem_mmap)
-#define DRM_IOCTL_GEM_NAME DRM_IOWR(0x0e, struct drm_gem_name)
+#define DRM_IOCTL_GEM_FLINK DRM_IOWR(0x0e, struct drm_gem_flink)
#define DRM_IOCTL_GEM_OPEN DRM_IOWR(0x0f, struct drm_gem_open)
#define DRM_IOCTL_GEM_SET_DOMAIN DRM_IOW (0xb7, struct drm_gem_set_domain)