aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-04-09 15:05:04 -0400
committerDave Airlie <airlied@redhat.com>2010-04-19 23:19:25 -0400
commit1d397043bcc2c8cdccb584a8ef73131f28f18e4c (patch)
tree564c09e78bffef21ff65988ea76380db132cc02a /include
parent153549b8b63d71a9c5d8cbde887097b995c32bd6 (diff)
drm: extract drm_gem_object_init
This function can be used by drivers who allocate the drm gem object on their own. No functional change in here, just preparation. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Eric Anholt <eric@anholt.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drmP.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 2f3b3a00b7a3..b3b57b561b92 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1432,6 +1432,8 @@ void drm_gem_object_free(struct kref *kref);
1432void drm_gem_object_free_unlocked(struct kref *kref); 1432void drm_gem_object_free_unlocked(struct kref *kref);
1433struct drm_gem_object *drm_gem_object_alloc(struct drm_device *dev, 1433struct drm_gem_object *drm_gem_object_alloc(struct drm_device *dev,
1434 size_t size); 1434 size_t size);
1435int drm_gem_object_init(struct drm_device *dev,
1436 struct drm_gem_object *obj, size_t size);
1435void drm_gem_object_handle_free(struct kref *kref); 1437void drm_gem_object_handle_free(struct kref *kref);
1436void drm_gem_vm_open(struct vm_area_struct *vma); 1438void drm_gem_vm_open(struct vm_area_struct *vma);
1437void drm_gem_vm_close(struct vm_area_struct *vma); 1439void drm_gem_vm_close(struct vm_area_struct *vma);