From 9ff37ba139dceb722af3502816ed228c43fbecfd Mon Sep 17 00:00:00 2001 From: nodist Date: Sun, 1 Nov 2026 15:39:29 -0500 Subject: inc and dec priority with io uring submit --- include/kpl/io.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/kpl/io.h') diff --git a/include/kpl/io.h b/include/kpl/io.h index 3838a55..30503ad 100644 --- a/include/kpl/io.h +++ b/include/kpl/io.h @@ -48,14 +48,16 @@ inline void kpl_io_uring_free(kpl_io_uring *io_uring) { * This will wait if io uring enter is called * NULL for none completed * If an error occurred, the error details will be on the kpl_task_object + * *thread is needed to decrease priority */ -kpl_object_task *kpl_io_uring_get_completed(kpl_io_uring *io_uring); +kpl_object_task *kpl_io_uring_get_completed(kpl_thread *thread); /* * Submits all sqes (added_to_queue has total) in one io uring eneter * This does not wait + * *thread is need to increase priority by the number of operations submitted */ -int32_t kpl_io_uring_submit(kpl_io_uring *io_uring); +int32_t kpl_io_uring_submit(kpl_thread *thread); /* * Only call this though one of the functions below to add an operation to the queue -- cgit v1.2.3