aboutsummaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2007-12-14 13:19:09 -0800
committerKeith Packard <keithp@keithp.com>2007-12-15 12:10:42 -0800
commit9d17373ffbba3cc4ee5f63ff02ff24d48ab99fe0 (patch)
tree8946f375596d0d78c03a8926959d3f60eb1cf987 /linux-core
parent7461519fed25f6d63415a9dd4b915c6cc668a69c (diff)
Document drm_buffer_object_validate function.
Just add documentation for this function, no code changes.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_bo.c23
1 files changed, 20 insertions, 3 deletions
diff --git a/linux-core/drm_bo.c b/linux-core/drm_bo.c
index 1ce86978..7033a8ba 100644
--- a/linux-core/drm_bo.c
+++ b/linux-core/drm_bo.c
@@ -1372,8 +1372,25 @@ static int drm_bo_mem_compat(struct drm_bo_mem_reg *mem)
return 1;
}
-/*
- * bo locked.
+/**
+ * drm_buffer_object_validate:
+ *
+ * @bo: the buffer object to modify
+ *
+ * @fence_class: the new fence class covering this buffer
+ *
+ * @move_unfenced: a boolean indicating whether switching the
+ * memory space of this buffer should cause the buffer to
+ * be placed on the unfenced list.
+ *
+ * @no_wait: whether this function should return -EBUSY instead
+ * of waiting.
+ *
+ * Change buffer access parameters. This can involve moving
+ * the buffer to the correct memory type, pinning the buffer
+ * or changing the class/type of fence covering this buffer
+ *
+ * Must be called with bo locked.
*/
static int drm_buffer_object_validate(struct drm_buffer_object *bo,
@@ -1503,7 +1520,7 @@ static int drm_buffer_object_validate(struct drm_buffer_object *bo,
}
/**
- * drm_bo_do_validate
+ * drm_bo_do_validate:
*
* @bo: the buffer object
*