Skip to content

Commit aef7b67

Browse files
committed
drm/i915/uapi: convert drm_i915_gem_userptr to kernel doc
Add the missing kernel-doc. Signed-off-by: Matthew Auld <[email protected]> Cc: Thomas Hellström <[email protected]> Cc: Maarten Lankhorst <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Cc: Jordan Justen <[email protected]> Cc: Kenneth Graunke <[email protected]> Cc: Jason Ekstrand <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Ramalingam C <[email protected]> Reviewed-by: Maarten Lankhorst <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent e7737b6 commit aef7b67

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

include/uapi/drm/i915_drm.h

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2141,14 +2141,52 @@ struct drm_i915_reset_stats {
21412141
__u32 pad;
21422142
};
21432143

2144+
/**
2145+
* struct drm_i915_gem_userptr - Create GEM object from user allocated memory.
2146+
*
2147+
* Userptr objects have several restrictions on what ioctls can be used with the
2148+
* object handle.
2149+
*/
21442150
struct drm_i915_gem_userptr {
2151+
/**
2152+
* @user_ptr: The pointer to the allocated memory.
2153+
*
2154+
* Needs to be aligned to PAGE_SIZE.
2155+
*/
21452156
__u64 user_ptr;
2157+
2158+
/**
2159+
* @user_size:
2160+
*
2161+
* The size in bytes for the allocated memory. This will also become the
2162+
* object size.
2163+
*
2164+
* Needs to be aligned to PAGE_SIZE, and should be at least PAGE_SIZE,
2165+
* or larger.
2166+
*/
21462167
__u64 user_size;
2168+
2169+
/**
2170+
* @flags:
2171+
*
2172+
* Supported flags:
2173+
*
2174+
* I915_USERPTR_READ_ONLY:
2175+
*
2176+
* Mark the object as readonly, this also means GPU access can only be
2177+
* readonly. This is only supported on HW which supports readonly access
2178+
* through the GTT. If the HW can't support readonly access, an error is
2179+
* returned.
2180+
*
2181+
* I915_USERPTR_UNSYNCHRONIZED:
2182+
*
2183+
* NOT USED. Setting this flag will result in an error.
2184+
*/
21472185
__u32 flags;
21482186
#define I915_USERPTR_READ_ONLY 0x1
21492187
#define I915_USERPTR_UNSYNCHRONIZED 0x80000000
21502188
/**
2151-
* Returned handle for the object.
2189+
* @handle: Returned handle for the object.
21522190
*
21532191
* Object handles are nonzero.
21542192
*/

0 commit comments

Comments
 (0)