summaryrefslogtreecommitdiff
path: root/lib/igt_kms.c
diff options
context:
space:
mode:
authorRamalingam C <ramalingam.c@intel.com>2019-11-29 16:54:12 +0530
committerChris Wilson <chris@chris-wilson.co.uk>2019-11-29 14:09:13 +0000
commit04e5a40a0d69d03f26e12f735a62bb688f9a3210 (patch)
treedf93c16026eecf96a0a29235f6a3262e2e3be517 /lib/igt_kms.c
parent187bef1ee5aa861d3d0f2a2edfe3b6df6909ebb2 (diff)
lib/kmstest_dumb_map_buffer: docs update
Added the need for munmapping the returned pointer, after its usage. Signed-off-by: Ramalingam C <ramalingam.c@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_kms.c')
-rw-r--r--lib/igt_kms.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index e9b80b9b..9242065e 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -837,6 +837,7 @@ uint32_t kmstest_dumb_create(int fd, int width, int height, int bpp,
* @size: Length of the mapping, must be greater than 0
* @prot: Describes the memory protection of the mapping
* Returns: A pointer representing the start of the virtual mapping
+ * Caller of this function should munmap the pointer returned, after its usage.
*/
void *kmstest_dumb_map_buffer(int fd, uint32_t handle, uint64_t size,
unsigned prot)