This repository contains a C program demonstrating the usage of Linux's io_uring
interface for asynchronous I/O operations, designed specifically for Ubuntu 22.04.
Ensure your system is running Ubuntu 22.04. No additional libraries or packages are needed beyond what's provided by a standard C development environment.
To build the program, follow these steps using CMake
:
-
Clone the Repository
Clone this repository to your local machine using the following command:
git clone https://github.com/TSWorld1314/IO_Uring-Example.git cd IO_Uring-Example
-
Create a Build Directory
Create a separate build directory for CMake:
mkdir build cd build
-
Configure the Project
Configure the project using CMake. Specify a debug build to include debug symbols:
cmake .. -DCMAKE_BUILD_TYPE=Debug
-
Compile the Project
Compile the project using the generated Makefile:
cmake --build .
-
Run the Program
After building the project, you can run the program directly:
./my_cat ../Data/*