summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmmar Faizi <ammar.faizi@students.amikom.ac.id>2021-10-06 05:30:10 +0700
committerJens Axboe <axboe@kernel.dk>2021-10-05 16:42:02 -0600
commita9895111798af2003f5298abb1d5bdaf11ca549e (patch)
tree75de7e1844d8ef5a32624633103f78e157d06ed4
parenta060c8e55a6116342a16b5b6ac0c4afed17c1cd7 (diff)
downloadliburing-a9895111798af2003f5298abb1d5bdaf11ca549e.tar.gz
liburing-a9895111798af2003f5298abb1d5bdaf11ca549e.tar.bz2
Fix typo "timout" -> "timeout"
Cc: Jens Axboe <axboe@kernel.dk> Cc: Olivier Langlois <olivier@trillion01.com> Fixes: a060c8e55a6116342a16b5b6ac0c4afed17c1cd7 ("liburing: Add io_uring_submit_and_wait_timeout function in API") Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--src/include/liburing.h10
-rw-r--r--src/liburing.map2
-rw-r--r--src/queue.c10
3 files changed, 11 insertions, 11 deletions
diff --git a/src/include/liburing.h b/src/include/liburing.h
index fe8bfbe..99f4f37 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -122,11 +122,11 @@ int io_uring_wait_cqe_timeout(struct io_uring *ring,
struct __kernel_timespec *ts);
int io_uring_submit(struct io_uring *ring);
int io_uring_submit_and_wait(struct io_uring *ring, unsigned wait_nr);
-int io_uring_submit_and_wait_timout(struct io_uring *ring,
- struct io_uring_cqe **cqe_ptr,
- unsigned wait_nr,
- struct __kernel_timespec *ts,
- sigset_t *sigmask);
+int io_uring_submit_and_wait_timeout(struct io_uring *ring,
+ struct io_uring_cqe **cqe_ptr,
+ unsigned wait_nr,
+ struct __kernel_timespec *ts,
+ sigset_t *sigmask);
struct io_uring_sqe *io_uring_get_sqe(struct io_uring *ring);
int io_uring_register_buffers(struct io_uring *ring, const struct iovec *iovecs,
diff --git a/src/liburing.map b/src/liburing.map
index 09f4275..7f1eeb7 100644
--- a/src/liburing.map
+++ b/src/liburing.map
@@ -47,5 +47,5 @@ LIBURING_2.1 {
LIBURING_2.2 {
global:
- io_uring_submit_and_wait_timout;
+ io_uring_submit_and_wait_timeout;
} LIBURING_2.1;
diff --git a/src/queue.c b/src/queue.c
index b985056..9af29d5 100644
--- a/src/queue.c
+++ b/src/queue.c
@@ -313,11 +313,11 @@ int io_uring_wait_cqes(struct io_uring *ring, struct io_uring_cqe **cqe_ptr,
return __io_uring_get_cqe(ring, cqe_ptr, to_submit, wait_nr, sigmask);
}
-int io_uring_submit_and_wait_timout(struct io_uring *ring,
- struct io_uring_cqe **cqe_ptr,
- unsigned wait_nr,
- struct __kernel_timespec *ts,
- sigset_t *sigmask)
+int io_uring_submit_and_wait_timeout(struct io_uring *ring,
+ struct io_uring_cqe **cqe_ptr,
+ unsigned wait_nr,
+ struct __kernel_timespec *ts,
+ sigset_t *sigmask)
{
int to_submit;