diff options
author | Keith Packard <keithp@keithp.com> | 2007-12-14 13:19:35 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2007-12-15 12:10:42 -0800 |
commit | 0b031dbd63bbb3e0ba6d39e1e5c4eb4e87985158 (patch) | |
tree | 61a89bbca56d0186c873df6c3258bd059113fc3f /linux-core/drm_ttm.c | |
parent | 9d17373ffbba3cc4ee5f63ff02ff24d48ab99fe0 (diff) |
Document drm_ttm_set_user.
Add a comment explaining the parameters for this function
Diffstat (limited to 'linux-core/drm_ttm.c')
-rw-r--r-- | linux-core/drm_ttm.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/linux-core/drm_ttm.c b/linux-core/drm_ttm.c index 4200bc1a..4c1b3274 100644 --- a/linux-core/drm_ttm.c +++ b/linux-core/drm_ttm.c @@ -239,6 +239,22 @@ struct page *drm_ttm_get_page(struct drm_ttm *ttm, int index) } EXPORT_SYMBOL(drm_ttm_get_page); +/** + * drm_ttm_set_user: + * + * @ttm: the ttm to map pages to. This must always be + * a freshly created ttm. + * + * @tsk: a pointer to the address space from which to map + * pages. + * + * @write: a boolean indicating that write access is desired + * + * start: the starting address + * + * Map a range of user addresses to a new ttm object. This + * provides access to user memory from the graphics device. + */ int drm_ttm_set_user(struct drm_ttm *ttm, struct task_struct *tsk, int write, |