pub/scm/linux/kernel/git/axboe/liburing.git  about / heads / tags
io_uring library
$ git log --pretty=format:'%h %s (%cs)%d'
3124a46 examples/io_uring-test: Fix memory leak (2025-01-12)
	(HEAD -> master)
76bb80a man/io_uring_prep_close_direct.3: note on IOSQE_FIXED_FILE (2025-01-07)
584d1b1 Merge branch 'multishot-timeout-update' of https://github.com/cmazakas/liburing (2025-01-06)
1528374 test/timeout: update multishot timeout operations (2025-01-06)
1a780b1 test/read-inc-file: skip if argument is given (2025-01-03)
4776a04 test/read-inc-file: test incremental consumption with regular file (2025-01-03)
1437be0 man/io_uring_setup_buf_ring.3: mention max size of a buffer ring (2025-01-02)
4ac57e5 Update CHANGELOG for 2.9 release (2025-01-02)
423897a test/timeout: add timeout lock -> eventfd signal lock ordering (2024-12-30)
e22d2fa test/cmd-discard: don't fail on EBUSY -> T_EXIT_SKIP (2024-12-30)
...

$ git cat-file blob HEAD:README
liburing
--------

This is the io_uring library, liburing. liburing provides helpers to setup and
teardown io_uring instances, and also a simplified interface for
applications that don't need (or want) to deal with the full kernel
side implementation.

For more info on io_uring, please see:

https://kernel.dk/io_uring.pdf

Subscribe to io-uring@vger.kernel.org for io_uring related discussions
and development for both kernel and userspace. The list is archived here:

https://lore.kernel.org/io-uring/


kernel version dependency
--------------------------

liburing itself is not tied to any specific kernel release, and hence it's
possible to use the newest liburing release even on older kernels (and vice
versa). Newer features may only be available on more recent kernels,
obviously.


ulimit settings
---------------

io_uring accounts memory it needs under the rlimit memlocked option, which
can be quite low on some setups (64K). The default is usually enough for
most use cases, but bigger rings or things like registered buffers deplete
it quickly. root isn't under this restriction, but regular users are. Going
into detail on how to bump the limit on various systems is beyond the scope
of this little blurb, but check /etc/security/limits.conf for user specific
settings, or /etc/systemd/user.conf and /etc/systemd/system.conf for systemd
setups. This affects 5.11 and earlier, new kernels are less dependent
on RLIMIT_MEMLOCK as it is only used for registering buffers.


Regressions tests
-----------------

The bulk of liburing is actually regression/unit tests for both liburing and
the kernel io_uring support. Please note that this suite isn't expected to
pass on older kernels, and may even crash or hang older kernels!


Building liburing
-----------------

    #
    # Prepare build config (optional).
    #
    #  --cc  specifies the C   compiler.
    #  --cxx specifies the C++ compiler.
    #
    ./configure --cc=gcc --cxx=g++;

    #
    # Build liburing.
    #
    make -j$(nproc);

    #
    # Build liburing.pc
    #
    make liburing.pc

    #
    # Install liburing (headers, shared/static libs, and manpage).
    #
    sudo make install;

See './configure --help' for more information about build config options.


FFI support
-----------

By default, the build results in 4 lib files:

    2 shared libs:

        liburing.so
        liburing-ffi.so

    2 static libs:

        liburing.a
        liburing-ffi.a

Languages and applications that can't use 'static inline' functions in
liburing.h should use the FFI variants.

liburing's main public interface lives in liburing.h as 'static inline'
functions. Users wishing to consume liburing purely as a binary dependency
should link against liburing-ffi. It contains definitions for every 'static
inline' function.


License
-------

All software contained within this repo is dual licensed LGPL and MIT, see
COPYING and LICENSE, except for a header coming from the kernel which is
dual licensed GPL with a Linux-syscall-note exception and MIT, see
COPYING.GPL and <https://spdx.org/licenses/Linux-syscall-note.html>.

Jens Axboe 2022-05-19

# heads (aka `branches'):
$ git for-each-ref --sort=-creatordate refs/heads \
	--format='%(HEAD) %(refname:short) %(subject) (%(creatordate:short))'
* master       examples/io_uring-test: Fix memory leak (2025-01-12)
  reg-wait     Update registered wait registration API (2024-10-27)
  resize-rings test/resize-rings: add test case for mmap vs resize race (2024-10-27)
  zcrx         Merge branch 'zcrx/next' of https://github.com/isilence/liburing into zcrx (2024-10-21)
  for_each_cqe Make io_uring_for_each_cqe() only read the tail once (2024-09-30)
  sync-msg     man/io_uring_register_sync_msg_ring.3: document it (2024-09-27)
  buf-copy     Add registered buffer copy support (2024-09-12)
  pbuf-ring-inc test/recvsend_bundle-inc: skip test on older kernels (2024-08-28)
  napi-test    test/napi-test: turn into a test case (2024-08-28)
  min-wait     Update min-wait bits from 2.6 to 2.8 (2024-08-19)
...

# tags:
$ git for-each-ref --sort=-creatordate refs/tags \
	--format='%(refname:short) %(subject) (%(creatordate:short))'
liburing-2.3 liburing-2.3 (2022-11-01) tar.gz
liburing-2.2 liburing-2.2 (2022-06-25) tar.gz
liburing-2.1 liburing-2.1 (2021-09-09) tar.gz
liburing-2.0 liburing-2.0 (2021-03-03) tar.gz
liburing-0.7 liburing-0.7 (2020-07-10) tar.gz
liburing-0.6 liburing-0.6 (2020-04-17) tar.gz
liburing-0.5 liburing-0.5 (2020-02-25) tar.gz
liburing-0.4 liburing-0.4 (2020-02-23) tar.gz
liburing-0.3 liburing-0.3 (2019-12-21) tar.gz
liburing-0.2 liburing-0.2 (2019-10-24) tar.gz
...

# associated public inboxes:
# (number on the left is used for dev purposes)
        872 io-uring
        132 ../../../../../../../lkml
        100 linux-block
         17 netdev
         14 linux-fsdevel
         14 fio
         13 qemu-devel
         11 u-boot
         10 stable
         10 linux-arm-kernel
          8 linux-devicetree
          8 linux-arch
          7 dpdk-dev
          6 linux-mm
          6 dri-devel
          5 linux-wireless
          5 xen-devel
          5 linux-gpio
          5 linux-rdma
          5 linuxppc-dev
          5 git
          5 buildroot
          4 bpf
          4 linux-nfs
          4 netfilter-devel
          4 linux-arm-msm
          4 linux-iio
          4 linux-leds
          4 kvm
          4 intel-gfx
          4 linux-api
          4 linux-omap
          4 linux-pwm
          4 linux-can
          4 linux-rockchip
          4 dm-devel
          4 openembedded-devel
          3 linux-riscv
          3 linux-xfs
          3 linux-mediatek
          3 linux-acpi
          3 linux-amlogic
          3 linux-iommu
          3 linux-media
          3 linux-mips
          3 fstests
          3 linux-hwmon
          3 linux-rtc
          3 linux-input
          3 alsa-devel
          3 linux-btrfs
          3 linux-usb
          3 linux-parisc
          3 linux-security-module
          3 linux-bluetooth
          3 linux-ide
          3 linux-mmc
          3 cip-dev
          3 linux-i2c
          3 linux-tegra
          3 ceph-devel
          3 platform-driver-x86
          3 nouveau
          3 linux-s390
          3 ofono
          3 linux-patches
          3 xenomai
          2 linux-samsung-soc
          2 linux-mtd
          2 linux-nvme
          2 linux-crypto
          2 linux-efi
          2 linux-integrity
          2 linux-edac
          2 linux-cifs
          2 linux-erofs
          2 linux-snps-arc
          2 linux-pm
          2 linux-scsi
          2 kvmarm
          2 linux-renesas-soc
          2 linux-kselftest
          2 selinux
          2 linux-clk
          2 dmaengine
          2 linux-next
          2 linux-pci
          2 linux-modules
          2 linux-rt-users
          2 linux-serial
          2 linux-watchdog
          2 linux-trace-devel
          2 linux-hyperv
          2 rcu
          2 linux-m68k
          2 linux-i3c
          2 util-linux
          2 linux-spdx
          2 wireguard
          2 backports
          2 linux-doc
          2 linux-csky
          2 linux-man
          2 amd-gfx
          2 linux-unionfs
          2 linux-firmware
          2 linux-spi
          2 linux-remoteproc
          2 linux-sparse
          2 virtualization
          2 linux-kbuild
          2 linux-fpga
          2 linux-raid
          2 phone-devel
          2 openbmc
          2 linux-hardening
          2 dash
          2 keyrings
          2 linux-fbdev
          2 linux-cxl
          2 linux-perf-users
          2 linux-sh
          2 soc
          2 ocfs2-devel
          2 rust-for-linux
          2 linux-phy
          2 kernel-janitors
          2 sparclinux
          2 linux-staging
          2 linux-sunxi
          2 mptcp
          2 linux-coco
          2 nvdimm
          2 llvm
          2 iwd
          2 ltp
          2 yocto
          2 openembedded-core
          2 yocto-meta-arm
          2 bitbake-devel
          2 yocto-meta-virtualization
          2 yocto-meta-ti
          2 yocto-meta-arago
          2 damon
          2 openrisc
          2 kexec
          2 loongarch
          2 imx
          2 b4-sent
          2 linux-trace-kernel
          2 oe-kbuild-all
          2 batman
          2 intel-xe
          2 linux-um
          2 v9fs
          2 poky
          2 qemu-riscv
          2 cluster-devel
          2 grub-devel
          2 kvm-ppc
          2 linux-alpha
          2 linux-hexagon
          2 linux-sound
          2 u-boot-amlogic
          2 perfbook
          2 igt-dev
          1 linux-fscrypt
          1 cocci
          1 live-patching
          1 linux-nvdimm
          1 driverdev-devel
          1 kernel-hardening
          1 linux-ext4
          1 linux-f2fs-devel
          1 kernelnewbies
          1 linux-sgx
          1 workflows
          1 linux-wpan
          1 ksummit-discuss
          1 linux-kernel-mentees
          1 tpmdd-devel
          1 linux-audit
          1 linux-dash
          1 linux-bcache
          1 mm-commits
          1 lttng-dev
          1 containers
          1 xdp-newbies
          1 linux-sctp
          1 target-devel
          1 lustre-devel
          1 ath10k
          1 ath11k
          1 regressions
          1 ksummit
          1 b43-dev
          1 linux-nfc
          1 linux-bcachefs
          1 ath9k-devel
          1 ntfs3
          1 linux-ppp
          1 ell
          1 yocto-meta-freescale
          1 yocto-toaster
          1 yocto-docs
          1 chrome-platform
          1 ntb
          1 outreachy
          1 asahi
          1 intel-wired-lan
          1 ath12k
          1 oe-linux-nfc
          1 oe-chipsec
          1 fsverity
          1 virtio-dev
          1 virtio-comment
          1 ecryptfs
          1 linux-ia64
          1 kdevops
          1 kbd
          1 autofs
          1 cpufreq
          1 dccp
          1 cgroups
          1 devicetree-spec
          1 devicetree-compiler
          1 initramfs
          1 hail-devel
          1 kvm-ia64
          1 linux-8086
          1 kernel-testers
          1 linux-btrace
          1 linux-embedded
          1 linux-hams
          1 linux-hotplug
          1 linux-laptop
          1 trinity
          1 reiserfs-devel
          1 linux-metag
          1 linux-x25
          1 linux-nilfs
          1 lvs-devel
          1 netfilter
          1 linux-oxnas
          1 lm-sensors
          1 lvm-devel
          1 acpica-devel
          1 virtio-fs
          1 smatch
          1 fuego
          1 accel-config
          1 wireless-regdb
          1 netfs
          1 powertop
          1 dtrace
          1 yocto-patches
          1 ../../../../../../../barebox
          1 ../../../../../../../linux-aspeed

git clone https://yhbt.net/lore/pub/scm/linux/kernel/git/axboe/liburing.git