[PATCH i-g-t 2/6] lib/igt_gt: Document fd argument in igt_open_forcewake_handle()

Lucas De Marchi lucas.demarchi at intel.com
Wed Sep 18 16:36:25 UTC 2024


Document the fd argument to make it clear what -1 means, which is
usually not the desired behavior.

Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
---
 lib/igt_gt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/igt_gt.c b/lib/igt_gt.c
index b043e2d41..d831d2448 100644
--- a/lib/igt_gt.c
+++ b/lib/igt_gt.c
@@ -492,6 +492,7 @@ void igt_stop_hang_helper(void)
 
 /**
  * igt_open_forcewake_handle:
+ * @fd: open i915 or xe drm file descriptor or -1 to use the first device found
  *
  * This functions opens the debugfs forcewake file and so prevents the GT from
  * suspending. The reference is automatically dropped when the is closed.
-- 
2.46.1



More information about the igt-dev mailing list