|
@@ -436,9 +436,12 @@ err_unref:
|
|
|
* @obj: object to register
|
|
|
* @handlep: pionter to return the created handle to the caller
|
|
|
*
|
|
|
- * Create a handle for this object. This adds a handle reference
|
|
|
- * to the object, which includes a regular reference count. Callers
|
|
|
- * will likely want to dereference the object afterwards.
|
|
|
+ * Create a handle for this object. This adds a handle reference to the object,
|
|
|
+ * which includes a regular reference count. Callers will likely want to
|
|
|
+ * dereference the object afterwards.
|
|
|
+ *
|
|
|
+ * Since this publishes @obj to userspace it must be fully set up by this point,
|
|
|
+ * drivers must call this last in their buffer object creation callbacks.
|
|
|
*/
|
|
|
int drm_gem_handle_create(struct drm_file *file_priv,
|
|
|
struct drm_gem_object *obj,
|