diff options
author | Ramalingam C <ramalingam.c@intel.com> | 2019-11-29 16:54:12 +0530 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-11-29 14:09:13 +0000 |
commit | 04e5a40a0d69d03f26e12f735a62bb688f9a3210 (patch) | |
tree | df93c16026eecf96a0a29235f6a3262e2e3be517 /lib/igt_kms.c | |
parent | 187bef1ee5aa861d3d0f2a2edfe3b6df6909ebb2 (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.c | 1 |
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) |