io_uring_register_clock(3) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | SEE ALSO | COLOPHON

io_uring_register_clock(3)   liburing Manual   io_uring_register_clock(3)

NAME         top

       io_uring_register_clock - set clock source for event waiting

SYNOPSIS         top

       #include <liburing.h>

       int io_uring_register_clock(struct io_uring *ring,
                                   struct io_uring_clock_register *arg);

DESCRIPTION         top

       The io_uring_register_clock(3) function registers which clock
       source should be used by io_uring, when an application waits for
       event completions. The ring argument should point to the ring in
       question, and the arg argument should be a pointer to a struct
       io_uring_clock_register .

       The arg argument must be filled in with the appropriate
       information. It looks as follows:

           struct io_uring_clock_register {
               __u32 clockid;
               __u32 __resv[3];
           };

       The clockid field must contain the clock source, with valid
       sources being:

       CLOCK_MONOTONIC
              a nonsettable system-wide clock that represents monotonic
              time.

       CLOCK_BOOTTIME
              A nonsettable system-wide clock that is identical to
              CLOCK_MONOTONIC , except that is also icnludes any time
              that the system is suspended.

       See clock_gettime(3) for more details.

       The __resv fields must be filled with zeroes.

       Available since 6.12.

RETURN VALUE         top

       On success io_uring_register_clock(3) returns 0. On failure it
       returns -errno.

SEE ALSO         top

       clock_gettime(3), io_uring_register(2), io_uring_wait_cqe(3),
       io_uring_wait_cqe_timeout(3),

COLOPHON         top

       This page is part of the liburing (A library for io_uring)
       project.  Information about the project can be found at 
       ⟨https://github.com/axboe/liburing⟩.  If you have a bug report for
       this manual page, send it to io-uring@vger.kernel.org.  This page
       was obtained from the project's upstream Git repository
       ⟨https://github.com/axboe/liburing⟩ on 2025-08-11.  (At that time,
       the date of the most recent commit that was found in the
       repository was 2025-08-02.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there is
       a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to
       man-pages@man7.org

liburing-2.8                   Aug 18, 2024    io_uring_register_clock(3)

Pages that refer to this page: io_uring_register_clock(3)