Back to home page

OSCL-LXR

 
 

    


0001 This directory includes a few programs that demonstrate how to use io_uring
0002 in an application. The examples are:
0003 
0004 io_uring-cp
0005         A very basic io_uring implementation of cp(1). It takes two
0006         arguments, copies the first argument to the second. This example
0007         is part of liburing, and hence uses the simplified liburing API
0008         for setting up an io_uring instance, submitting IO, completing IO,
0009         etc. The support functions in queue.c and setup.c are straight
0010         out of liburing.
0011 
0012 io_uring-bench
0013         Benchmark program that does random reads on a number of files. This
0014         app demonstrates the various features of io_uring, like fixed files,
0015         fixed buffers, and polled IO. There are options in the program to
0016         control which features to use. Arguments is the file (or files) that
0017         io_uring-bench should operate on. This uses the raw io_uring
0018         interface.
0019 
0020 liburing can be cloned with git here:
0021 
0022         git://git.kernel.dk/liburing
0023 
0024 and contains a number of unit tests as well for testing io_uring. It also
0025 comes with man pages for the three system calls.
0026 
0027 Fio includes an io_uring engine, you can clone fio here:
0028 
0029         git://git.kernel.dk/fio