Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx> --- src/include/liburing.h | 3 +++ src/liburing-ffi.map | 2 ++ src/liburing.map | 2 ++ src/register.c | 6 ++++++ 4 files changed, 13 insertions(+) diff --git a/src/include/liburing.h b/src/include/liburing.h index 1092f3b..53c94c4 100644 --- a/src/include/liburing.h +++ b/src/include/liburing.h @@ -241,6 +241,9 @@ int io_uring_register_file_alloc_range(struct io_uring *ring, int io_uring_register_napi(struct io_uring *ring, struct io_uring_napi *napi); int io_uring_unregister_napi(struct io_uring *ring, struct io_uring_napi *napi); +int io_uring_register_clock(struct io_uring *ring, + struct io_uring_clock_register *arg); + int io_uring_get_events(struct io_uring *ring); int io_uring_submit_and_get_events(struct io_uring *ring); diff --git a/src/liburing-ffi.map b/src/liburing-ffi.map index 476d7fd..a0bea31 100644 --- a/src/liburing-ffi.map +++ b/src/liburing-ffi.map @@ -206,4 +206,6 @@ LIBURING_2.7 { } LIBURING_2.6; LIBURING_2.8 { + global: + io_uring_register_clock; } LIBURING_2.7; diff --git a/src/liburing.map b/src/liburing.map index fa096bb..79f6068 100644 --- a/src/liburing.map +++ b/src/liburing.map @@ -97,4 +97,6 @@ LIBURING_2.7 { } LIBURING_2.6; LIBURING_2.8 { + global: + io_uring_register_clock; } LIBURING_2.7; diff --git a/src/register.c b/src/register.c index 9acc36f..c0690a8 100644 --- a/src/register.c +++ b/src/register.c @@ -366,3 +366,9 @@ int io_uring_unregister_napi(struct io_uring *ring, struct io_uring_napi *napi) { return do_register(ring, IORING_UNREGISTER_NAPI, napi, 1); } + +int io_uring_register_clock(struct io_uring *ring, + struct io_uring_clock_register *arg) +{ + return do_register(ring, IORING_REGISTER_CLOCK, arg, 0); +} -- 2.45.2