[igt-dev] [PATCH i-g-t v3 2/2] lib/kmstest_dumb_map_buffer: docs update

Ramalingam C ramalingam.c at intel.com
Fri Nov 29 11:24:12 UTC 2019


Added the need for munmapping the returned pointer, after its usage.

Signed-off-by: Ramalingam C <ramalingam.c at intel.com>
---
 lib/igt_kms.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index e9b80b9bcb81..9242065ed36a 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)
-- 
2.20.1



More information about the igt-dev mailing list