Top Description Fields Constructors Methods
org.lwjgl.system.linux.liburing

public Class LibURing

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*, org.lwjgl.system.linux.*

Native bindings to liburing.

Field Summary

Modifier and TypeField and Description
public static final long

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
public static void
io_uring_buf_ring_add(IOURingBufRing br, ByteBuffer addr, short bid, int mask, int buf_offset)

public static void
public static void
public static void
public static int
io_uring_buf_ring_mask(int ring_entries)

Return the appropriate mask for a buffer ring of size ring_entries

public static native boolean
io_uring_check_version(int major, int minor)

public static int
public static boolean
io_uring_cq_eventfd_enabled(IOURing ring)

Returns true if the eventfd notification is currently enabled.

public static int
io_uring_cq_eventfd_toggle(IOURing ring, boolean enabled)

Toggle eventfd notification on or off, if an eventfd is registered with the ring.

public static boolean
io_uring_cq_has_overflow(IOURing ring)

Returns true if there are overflow entries waiting to be flushed onto the CQ ring

public static int
io_uring_cq_ready(IOURing ring)

Retuns the number of unconsumed entries that are ready belonging to the ring param.

public static long
io_uring_cqe_get_data(IOURingCQE cqe)

Returns the user_data with the completion queue entry cqe.

public static long
public static void
io_uring_cqe_seen(IOURing ring, IOURingCQE cqe)

Marks the IO completion cqe belonging to the ring param as processed.

public static int
public static int
io_uring_enter(int fd, int to_submit, int min_complete, int flags, long sig)

See enter.

public static int
io_uring_enter2(int fd, int to_submit, int min_complete, int flags, long sig, long sz)

See enter2.

public static int
io_uring_free_buf_ring(IOURing ring, IOURingBufRing br, int nentries, int bgid)

public static void
io_uring_free_probe(IOURingProbe probe)

Frees the probe instance allocated with the get_probe function.

public static int

Returns:

0 on success, -errno on failure
io_uring_get_events
(IOURing ring)

Runs outstanding work and flushes completion events to the CQE ring.

public static IOURingProbe
io_uring_get_probe()

Returns an allocated io_uring_probe structure to the caller.

public static IOURingProbe
io_uring_get_probe_ring(IOURing ring)

Return an allocated io_uring_probe structure, or NULL if probe fails (for example, if it is not available).

public static IOURingSQE

Returns:

a pointer to the next submission queue event on success and NULL on failure
io_uring_get_sqe
(IOURing ring)

Gets the next available submission queue entry from the submission queue belonging to the ring param.

public static native int
public static native int
public static native int
io_uring_mlock_size(int entries, int
io_uring_params flags
flags
)

Return required ulimit -l memory space for a given ring setup.

public static int
io_uring_mlock_size_params(int entries, IOURingParams p)

Returns the required ulimit -l memlock memory required for a given ring setup, in bytes.

public static int
io_uring_opcode_supported(IOURingProbe p, int op)

Allows the caller to determine if the passed in opcode belonging to the probe param is supported.

public static int

Returns:

the amount of IO completions filled
io_uring_peek_batch_cqe
(IOURing ring, PointerBuffer cqes)

Fill in an array of IO completions up to count, if any are available.

public static int

Returns:

0 with cqe_ptr filled in on success, -errno on failure
io_uring_peek_cqe
(IOURing ring, PointerBuffer cqe_ptr)

Returns an IO completion, if one is readily available.

public static void
io_uring_prep_accept(IOURingSQE sqe, int fd, Sockaddr addr, IntBuffer addrlen, int flags)

public static void
io_uring_prep_accept_direct(IOURingSQE sqe, int fd, Sockaddr addr, IntBuffer addrlen, int flags, int file_index)

public static void
io_uring_prep_cancel(IOURingSQE sqe, long user_data, int flags)

public static void
io_uring_prep_cancel64(IOURingSQE sqe, long user_data, int flags)

public static void
io_uring_prep_cancel_fd(IOURingSQE sqe, int fd, int flags)

public static void
public static void
public static void
io_uring_prep_connect(IOURingSQE sqe, int fd, Sockaddr addr, int addrlen)

public static void
io_uring_prep_epoll_ctl(IOURingSQE sqe, int epfd, int fd, int op, EpollEvent ev)

public static void
io_uring_prep_fadvise(IOURingSQE sqe, int fd, int offset, long len, int advice)

public static void
io_uring_prep_fallocate(IOURingSQE sqe, int fd, int mode, long offset, long len)

public static void
public static void
public static void
public static void
io_uring_prep_fsetxattr(IOURingSQE sqe, int fd, ByteBuffer name, ByteBuffer value, int flags)

public static void
io_uring_prep_fsetxattr(IOURingSQE sqe, int fd, CharSequence name, ByteBuffer value, int flags)

public static void
io_uring_prep_fsync(IOURingSQE sqe, int fd, int fsync_flags)

public static void
public static void
public static void
io_uring_prep_linkat(IOURingSQE sqe, int olddfd, ByteBuffer oldpath, int newdfd, ByteBuffer newpath, int flags)

public static void
io_uring_prep_linkat(IOURingSQE sqe, int olddfd, CharSequence oldpath, int newdfd, CharSequence newpath, int flags)

public static void
public static void
public static void
public static void
io_uring_prep_mkdirat(IOURingSQE sqe, int dfd, ByteBuffer path, int mode)

public static void
io_uring_prep_mkdirat(IOURingSQE sqe, int dfd, CharSequence path, int mode)

public static void
io_uring_prep_msg_ring(IOURingSQE sqe, int fd, int len, long data, int flags)

public static void
io_uring_prep_msg_ring_cqe_flags(IOURingSQE sqe, int fd, int len, long data, int flags, int cqe_flags)

public static void
io_uring_prep_msg_ring_fd(IOURingSQE sqe, int fd, int source_fd, int target_fd, long data, int flags)

public static void
io_uring_prep_msg_ring_fd_alloc(IOURingSQE sqe, int fd, int source_fd, long data, int flags)

public static void
io_uring_prep_multishot_accept(IOURingSQE sqe, int fd, Sockaddr addr, IntBuffer addrlen, int flags)

public static void
io_uring_prep_multishot_accept_direct(IOURingSQE sqe, int fd, Sockaddr addr, IntBuffer addrlen, int flags)

public static void
public static void
io_uring_prep_openat(IOURingSQE sqe, int dfd, ByteBuffer path, int flags, int mode)

public static void
io_uring_prep_openat(IOURingSQE sqe, int dfd, CharSequence path, int flags, int mode)

public static void
public static void
public static void
io_uring_prep_openat2_direct(IOURingSQE sqe, int dfd, ByteBuffer path, OpenHow how, int file_index)

open directly into the fixed file table

public static void
io_uring_prep_openat2_direct(IOURingSQE sqe, int dfd, CharSequence path, OpenHow how, int file_index)

open directly into the fixed file table

public static void
io_uring_prep_openat_direct(IOURingSQE sqe, int dfd, ByteBuffer path, int flags, int mode, int file_index)

public static void
io_uring_prep_openat_direct(IOURingSQE sqe, int dfd, CharSequence path, int flags, int mode, int file_index)

public static void
io_uring_prep_poll_add(IOURingSQE sqe, int fd, int poll_mask)

public static void
io_uring_prep_poll_multishot(IOURingSQE sqe, int fd, int poll_mask)

public static void
public static void
io_uring_prep_poll_update(IOURingSQE sqe, long old_user_data, long new_user_data, int poll_mask, int flags)

public static void
io_uring_prep_provide_buffers(IOURingSQE sqe, ByteBuffer addr, int nr, int bgid, int bid)

public static void
io_uring_prep_read(IOURingSQE sqe, int fd, ByteBuffer buf, int offset)

Prepares an IO read request.

public static void
io_uring_prep_read_fixed(IOURingSQE sqe, int fd, ByteBuffer buf, int offset, int buf_index)

Prepares an IO read request with a previously registered IO buffer.

public static void
io_uring_prep_readv(IOURingSQE sqe, int fd, IOVec.Buffer iovecs, int offset)

Prepares a vectored IO read request.

public static void
io_uring_prep_readv2(IOURingSQE sqe, int fd, IOVec.Buffer iovecs, int offset, int flags)

Prepares a vectored IO read request.

public static void
io_uring_prep_recv(IOURingSQE sqe, int sockfd, ByteBuffer buf, int flags)

public static void
io_uring_prep_recv_multishot(IOURingSQE sqe, int sockfd, ByteBuffer buf, int flags)

public static void
io_uring_prep_recvmsg(IOURingSQE sqe, int fd, Msghdr msg, int flags)

public static void
io_uring_prep_recvmsg_multishot(IOURingSQE sqe, int fd, Msghdr msg, int flags)

public static void
public static void
public static void
public static void
io_uring_prep_renameat(IOURingSQE sqe, int olddfd, ByteBuffer oldpath, int newdfd, ByteBuffer newpath, int flags)

public static void
io_uring_prep_renameat(IOURingSQE sqe, int olddfd, CharSequence oldpath, int newdfd, CharSequence newpath, int flags)

public static void
io_uring_prep_send(IOURingSQE sqe, int sockfd, ByteBuffer buf, int flags)

public static void
io_uring_prep_send_set_addr(IOURingSQE sqe, Sockaddr dest_addr, short addr_len)

public static void
io_uring_prep_send_zc(IOURingSQE sqe, int sockfd, ByteBuffer buf, int flags, int zc_flags)

public static void
io_uring_prep_send_zc_fixed(IOURingSQE sqe, int sockfd, ByteBuffer buf, int flags, int zc_flags, int buf_index)

public static void
io_uring_prep_sendmsg(IOURingSQE sqe, int fd, Msghdr msg, int flags)

public static void
io_uring_prep_sendmsg_zc(IOURingSQE sqe, int fd, Msghdr msg, int flags)

public static void
io_uring_prep_sendto(IOURingSQE sqe, int sockfd, ByteBuffer buf, int flags, Sockaddr addr, int addrlen)

public static void
public static void
public static void
io_uring_prep_shutdown(IOURingSQE sqe, int fd, int how)

public static void
io_uring_prep_socket(IOURingSQE sqe, int domain, int type, int protocol, int flags)

public static void
io_uring_prep_socket_direct(IOURingSQE sqe, int domain, int type, int protocol, int file_index, int flags)

public static void
io_uring_prep_socket_direct_alloc(IOURingSQE sqe, int domain, int type, int protocol, int flags)

public static void
io_uring_prep_splice(IOURingSQE sqe, int fd_in, long
if fd_in refers to a pipe, off_in must be (int64_t) -1; If fd_in does not refer to a pipe and off_in is (int64_t) -1, then bytes are read from fd_in starting from the file offset and it is adjust appropriately; If fd_in does not refer to a pipe and off_in is not (int64_t) -1, then the starting offset of fd_in will be off_in.
off_in
,
int fd_out, long
the description of off_in also applied to off_out
off_out
,
int nbytes, int
see man splice(2) for description of flags
splice_flags
)

This splice operation can be used to implement sendfile by splicing to an intermediate pipe first, then splice to the final destination.

public static void
io_uring_prep_statx(IOURingSQE sqe, int dfd, ByteBuffer path, int flags, int mask, Statx statxbuf)

public static void
io_uring_prep_statx(IOURingSQE sqe, int dfd, CharSequence path, int flags, int mask, Statx statxbuf)

public static void
io_uring_prep_symlinkat(IOURingSQE sqe, ByteBuffer target, int newdirfd, ByteBuffer linkpath)

public static void
io_uring_prep_symlinkat(IOURingSQE sqe, CharSequence target, int newdirfd, CharSequence linkpath)

public static void
io_uring_prep_sync_file_range(IOURingSQE sqe, int fd, int len, int offset, int flags)

public static void
io_uring_prep_tee(IOURingSQE sqe, int fd_in, int fd_out, int nbytes, int splice_flags)

public static void
io_uring_prep_timeout(IOURingSQE sqe, KernelTimespec ts, int count, int flags)

public static void
io_uring_prep_timeout_remove(IOURingSQE sqe, long user_data, int flags)

public static void
io_uring_prep_timeout_update(IOURingSQE sqe, KernelTimespec ts, long user_data, int flags)

public static void
io_uring_prep_unlinkat(IOURingSQE sqe, int dfd, ByteBuffer path, int flags)

public static void
io_uring_prep_unlinkat(IOURingSQE sqe, int dfd, CharSequence path, int flags)

public static void
io_uring_prep_write(IOURingSQE sqe, int fd, ByteBuffer buf, int offset)

Prepares an IO write request.

public static void
io_uring_prep_write_fixed(IOURingSQE sqe, int fd, ByteBuffer buf, int offset, int buf_index)

Prepares an IO write request with a previously registered IO buffer.

public static void
io_uring_prep_writev(IOURingSQE sqe, int fd, IOVec.Buffer iovecs, int offset)

Prepares a vectored IO write request.

public static void
io_uring_prep_writev2(IOURingSQE sqe, int fd, IOVec.Buffer iovecs, int offset, int flags)

Prepares a vectored IO write request.

public static void
io_uring_queue_exit(IOURing ring)

Will release all resources acquired and initialized by queue_init.

public static int

Returns:

0 on success and ring will point to the shared memory containing the io_uring queues. On failure -errno is returned.
io_uring_queue_init
(int entries, IOURing ring, int
will be passed through to the setup syscall
flags
)

Executes the setup syscall to initialize the submission and completion queues in the kernel with at least entries entries and then maps the resulting file descriptor to memory shared between the application and the kernel.

public static int
public static int

Returns:

-errno on error, or zero on success
io_uring_queue_mmap
(int
a file descriptor returned by setup
fd
,
IOURingParams p, IOURing
on success, contains the necessary information to read/write to the rings
ring
)

For users that want to specify sq_thread_cpu or sq_thread_idle, this interface is a convenient helper for mmap()ing the rings.

public static CMsghdr
public static CMsghdr
public static long
public static long
public static int
public static IOURingRecvmsgOut
public static native int
io_uring_register(int fd, int opcode, long arg, int nr_args)

See register.

public static int

Returns:

0 on success, -errno on failure
io_uring_register_buf_ring
(IOURing ring, IOURingBufReg reg, int flags)

Registers a shared buffer ring to be used with provided buffers.

public static int

Returns:

0 on success. On failure it returns -errno.
io_uring_register_buffers
(IOURing ring, IOVec.Buffer iovecs)

Registers nr_iovecs number of buffers defined by the array iovecs belonging to the ring.

public static int
io_uring_register_buffers_sparse(IOURing ring, int nr_iovecs)

Registers nr_iovecs empty buffers belonging to the ring.

public static int
public static int
public static int
public static int
public static int
public static int

Returns:

0 on success. On failure it returns -errno.
io_uring_register_files
(IOURing ring, IntBuffer files)

Registers nr_files number of file descriptors defined by the array files belonging to the ring for subsequent operations.

public static int
io_uring_register_files_sparse(IOURing ring, int nr_files)

Registers an empty file table of nr_files number of file descriptors.

public static int
public static int
public static int
public static int
io_uring_register_iowq_aff(IOURing ring, long cpusz, long mask)

public static int
public static int
public static int
public static int
public static int

Returns:

1 on success, indicating that one file descriptor was registered, or -errno on error
io_uring_register_ring_fd
(IOURing ring)

Registers the file descriptor of the ring.

public static int
public static int
io_uring_ring_dontfork(IOURing ring)

Ensure that the mmap'ed rings aren't available to a child after a fork(2).

public static int
io_uring_setup(int entries, IOURingParams p)

See setup.

public static IOURingBufRing
io_uring_setup_buf_ring(IOURing ring, int nentries, int bgid, int flags, IntBuffer ret)

public static int
io_uring_sq_ready(IOURing ring)

Returns the number of unconsumed (if SQPOLL) or unsubmitted entries that exist in the SQ ring belonging to the ring param.

public static int
io_uring_sq_space_left(IOURing ring)

Returns how much space is left in the SQ ring belonging to the ring param.

public static void
io_uring_sqe_set_data(IOURingSQE sqe, long data)

Stores a user_data pointer with the submission queue entry sqe.

public static void
io_uring_sqe_set_data64(IOURingSQE sqe, long data)

Assign a 64-bit value to this sqe, which can get retrieved at completion time with cqe_get_data64.

public static void
io_uring_sqe_set_flags(IOURingSQE sqe, int flags)

Allows the caller to change the behavior of the submission queue entry by specifying flags.

public static int
io_uring_sqring_wait(IOURing ring)

Allows the caller to wait for space to free up in the SQ ring belonging to the ring param, which happens when the kernel side thread has consumed one or more entries.

public static int

Returns:

the number of submitted submission queue entries on success. On failure it returns -errno.
io_uring_submit
(IOURing ring)

Submits the next events to the submission queue belonging to the ring.

public static int

Returns:

the number of submitted submission queue entries on success, -errno on failure
io_uring_submit_and_get_events
(IOURing ring)

Submits the next events to the submission queue as with submit.

public static int

Returns:

the number of submitted submission queue entries on success. On failure it returns -errno.
io_uring_submit_and_wait
(IOURing ring, int wait_nr)

Submits the next events to the submission queue belonging to the ring and waits for wait_nr completion events.

public static int

Returns:

the number of submitted submission queue entries on success. On failure it returns -errno.
io_uring_submit_and_wait_timeout
(IOURing ring, PointerBuffer cqe_ptr, KernelTimespec ts, long
the set of signals to block. The prevailing signal mask is restored before returning.
sigmask
)

Submits the next events to the submission queue belonging to the ring and waits for wait_nr completion events or until the timeout ts expires.The completion events are stored in the cqe_ptr array.

public static int

Returns:

0 on success, -errno on failure
io_uring_unregister_buf_ring
(IOURing ring, int bgid)

Function unregisters a previously registered shared buffer ring indicated by bgid.

public static int

Returns:

0 on success. On failure it returns -errno.
io_uring_unregister_buffers
(IOURing ring)

Unregisters the fixed buffers previously registered to the ring.

public static int
public static int
public static int
public static int
public static int

Returns:

1 on success, indicating that one file descriptor was unregistered, or -errno on error
io_uring_unregister_ring_fd
(IOURing ring)

Unregisters the file descriptor of the ring.

public static int

Returns:

0 on success and the cqe_ptr param is filled in. On failure it returns -errno.
io_uring_wait_cqe
(IOURing ring, PointerBuffer cqe_ptr)

Returns an IO completion from the queue belonging to the ring param, waiting for it if necessary.

public static int

Returns:

0 on success and the cqe_ptr param is filled in. On failure it returns -errno.
io_uring_wait_cqe_nr
(IOURing ring, PointerBuffer cqe_ptr)

Returns wait_nr IO completion events from the queue belonging to the ring param, waiting for it if necessary.

public static int

Returns:

0 on success and the cqe_ptr param is filled in. On failure it returns -errno.
io_uring_wait_cqe_timeout
(IOURing ring, PointerBuffer
filled in on success
cqe_ptr
,
KernelTimespec ts)

Returns one IO completion from the queue belonging to the ring param, waiting for it if necessary or until the timeout ts expires.

public static int

Returns:

0 on success and the cqe_ptr param is filled in. On failure it returns -errno.
io_uring_wait_cqes
(IOURing ring, PointerBuffer
filled in on success
cqe_ptr
,
KernelTimespec ts, long
the set of signals to block. The prevailing signal mask is restored before returning.
sigmask
)

Returns wait_nr IO completions from the queue belonging to the ring param, waiting for it if necessary or until the timeout ts expires.

public static native int
public static native void
nio_uring_buf_ring_advance(long br, int count)

public static native void
nio_uring_buf_ring_cq_advance(long ring, long br, int count)

public static native int
public static native boolean
nio_uring_cq_eventfd_enabled(long ring)

Unsafe version of: cq_eventfd_enabled

public static native int
nio_uring_cq_eventfd_toggle(long ring, boolean enabled)

Unsafe version of: cq_eventfd_toggle

public static native boolean
nio_uring_cq_has_overflow(long ring)

Unsafe version of: cq_has_overflow

public static native int
nio_uring_cq_ready(long ring)

Unsafe version of: cq_ready

public static native long
nio_uring_cqe_get_data(long cqe)

Unsafe version of: cqe_get_data

public static native long
nio_uring_cqe_get_data64(long cqe)

Unsafe version of: cqe_get_data64

public static native void
nio_uring_cqe_seen(long ring, long cqe)

Unsafe version of: cqe_seen

public static native int
public static native int
nio_uring_enter(int fd, int to_submit, int min_complete, int flags, long sig)

Unsafe version of: enter

public static native int
nio_uring_enter2(int fd, int to_submit, int min_complete, int flags, long sig, long sz)

Unsafe version of: enter2

public static native int
nio_uring_free_buf_ring(long ring, long br, int nentries, int bgid)

public static native void
nio_uring_free_probe(long probe)

Unsafe version of: free_probe

public static native int
nio_uring_get_events(long ring)

Unsafe version of: get_events

public static native long
nio_uring_get_probe()

Unsafe version of: get_probe

public static native long
nio_uring_get_probe_ring(long ring)

Unsafe version of: get_probe_ring

public static native long
nio_uring_get_sqe(long ring)

Unsafe version of: get_sqe

public static native int
nio_uring_mlock_size_params(int entries, long p)

Unsafe version of: mlock_size_params

public static native int
nio_uring_opcode_supported(long p, int op)

Unsafe version of: opcode_supported

public static native int
nio_uring_peek_batch_cqe(long ring, long cqes, int count)

Unsafe version of: peek_batch_cqe

public static native int
nio_uring_peek_cqe(long ring, long cqe_ptr)

Unsafe version of: peek_cqe

public static native void
nio_uring_prep_accept(long sqe, int fd, long addr, long addrlen, int flags)

public static native void
nio_uring_prep_accept_direct(long sqe, int fd, long addr, long addrlen, int flags, int file_index)

public static native void
nio_uring_prep_cancel(long sqe, long user_data, int flags)

public static native void
nio_uring_prep_cancel64(long sqe, long user_data, int flags)

public static native void
nio_uring_prep_cancel_fd(long sqe, int fd, int flags)

public static native void
nio_uring_prep_close(long sqe, int fd)

public static native void
nio_uring_prep_close_direct(long sqe, int file_index)

public static native void
nio_uring_prep_connect(long sqe, int fd, long addr, int addrlen)

public static native void
nio_uring_prep_epoll_ctl(long sqe, int epfd, int fd, int op, long ev)

public static native void
nio_uring_prep_fadvise(long sqe, int fd, int offset, long len, int advice)

public static native void
nio_uring_prep_fallocate(long sqe, int fd, int mode, long offset, long len)

public static native void
nio_uring_prep_fgetxattr(long sqe, int fd, long name, long value, int len)

public static native void
nio_uring_prep_files_update(long sqe, long fds, int nr_fds, int offset)

public static native void
nio_uring_prep_fsetxattr(long sqe, int fd, long name, long value, int flags, int len)

public static native void
nio_uring_prep_fsync(long sqe, int fd, int fsync_flags)

public static native void
nio_uring_prep_getxattr(long sqe, long name, long value, long path, int len)

public static native void
nio_uring_prep_linkat(long sqe, int olddfd, long oldpath, int newdfd, long newpath, int flags)

public static native void
nio_uring_prep_madvise(long sqe, long addr, long length, int advice)

public static native void
nio_uring_prep_mkdir(long sqe, long path, int mode)

public static native void
nio_uring_prep_mkdirat(long sqe, int dfd, long path, int mode)

public static native void
nio_uring_prep_msg_ring(long sqe, int fd, int len, long data, int flags)

public static native void
nio_uring_prep_msg_ring_cqe_flags(long sqe, int fd, int len, long data, int flags, int cqe_flags)

public static native void
nio_uring_prep_msg_ring_fd(long sqe, int fd, int source_fd, int target_fd, long data, int flags)

public static native void
nio_uring_prep_msg_ring_fd_alloc(long sqe, int fd, int source_fd, long data, int flags)

public static native void
nio_uring_prep_multishot_accept(long sqe, int fd, long addr, long addrlen, int flags)

public static native void
nio_uring_prep_multishot_accept_direct(long sqe, int fd, long addr, long addrlen, int flags)

public static native void
public static native void
nio_uring_prep_openat(long sqe, int dfd, long path, int flags, int mode)

public static native void
nio_uring_prep_openat2(long sqe, int dfd, long path, long how)

public static native void
nio_uring_prep_openat2_direct(long sqe, int dfd, long path, long how, int file_index)

Unsafe version of: prep_openat2_direct

public static native void
nio_uring_prep_openat_direct(long sqe, int dfd, long path, int flags, int mode, int file_index)

public static native void
nio_uring_prep_poll_add(long sqe, int fd, int poll_mask)

public static native void
nio_uring_prep_poll_multishot(long sqe, int fd, int poll_mask)

public static native void
nio_uring_prep_poll_remove(long sqe, long user_data)

public static native void
nio_uring_prep_poll_update(long sqe, long old_user_data, long new_user_data, int poll_mask, int flags)

public static native void
nio_uring_prep_provide_buffers(long sqe, long addr, int len, int nr, int bgid, int bid)

public static native void
nio_uring_prep_read(long sqe, int fd, long buf, int nbytes, int offset)

Unsafe version of: prep_read

public static native void
nio_uring_prep_read_fixed(long sqe, int fd, long buf, int nbytes, int offset, int buf_index)

Unsafe version of: prep_read_fixed

public static native void
nio_uring_prep_readv(long sqe, int fd, long iovecs, int nr_vecs, int offset)

Unsafe version of: prep_readv

public static native void
nio_uring_prep_readv2(long sqe, int fd, long iovecs, int nr_vecs, int offset, int flags)

Unsafe version of: prep_readv2

public static native void
nio_uring_prep_recv(long sqe, int sockfd, long buf, long len, int flags)

public static native void
nio_uring_prep_recv_multishot(long sqe, int sockfd, long buf, long len, int flags)

public static native void
nio_uring_prep_recvmsg(long sqe, int fd, long msg, int flags)

public static native void
nio_uring_prep_recvmsg_multishot(long sqe, int fd, long msg, int flags)

public static native void
nio_uring_prep_remove_buffers(long sqe, int nr, int bgid)

public static native void
nio_uring_prep_rename(long sqe, long oldpath, long newpath)

public static native void
nio_uring_prep_renameat(long sqe, int olddfd, long oldpath, int newdfd, long newpath, int flags)

public static native void
nio_uring_prep_send(long sqe, int sockfd, long buf, long len, int flags)

public static native void
nio_uring_prep_send_set_addr(long sqe, long dest_addr, short addr_len)

public static native void
nio_uring_prep_send_zc(long sqe, int sockfd, long buf, long len, int flags, int zc_flags)

public static native void
nio_uring_prep_send_zc_fixed(long sqe, int sockfd, long buf, long len, int flags, int zc_flags, int buf_index)

public static native void
nio_uring_prep_sendmsg(long sqe, int fd, long msg, int flags)

public static native void
nio_uring_prep_sendmsg_zc(long sqe, int fd, long msg, int flags)

public static native void
nio_uring_prep_sendto(long sqe, int sockfd, long buf, long len, int flags, long addr, int addrlen)

public static native void
nio_uring_prep_setxattr(long sqe, long name, long value, long path, int flags, int len)

public static native void
nio_uring_prep_shutdown(long sqe, int fd, int how)

public static native void
nio_uring_prep_socket(long sqe, int domain, int type, int protocol, int flags)

public static native void
nio_uring_prep_socket_direct(long sqe, int domain, int type, int protocol, int file_index, int flags)

public static native void
nio_uring_prep_socket_direct_alloc(long sqe, int domain, int type, int protocol, int flags)

public static native void
nio_uring_prep_splice(long sqe, int fd_in, long off_in, int fd_out, long off_out, int nbytes, int splice_flags)

Unsafe version of: prep_splice

public static native void
nio_uring_prep_statx(long sqe, int dfd, long path, int flags, int mask, long statxbuf)

public static native void
nio_uring_prep_symlinkat(long sqe, long target, int newdirfd, long linkpath)

public static native void
nio_uring_prep_sync_file_range(long sqe, int fd, int len, int offset, int flags)

public static native void
nio_uring_prep_tee(long sqe, int fd_in, int fd_out, int nbytes, int splice_flags)

public static native void
nio_uring_prep_timeout(long sqe, long ts, int count, int flags)

public static native void
nio_uring_prep_timeout_remove(long sqe, long user_data, int flags)

public static native void
nio_uring_prep_timeout_update(long sqe, long ts, long user_data, int flags)

public static native void
nio_uring_prep_unlinkat(long sqe, int dfd, long path, int flags)

public static native void
nio_uring_prep_write(long sqe, int fd, long buf, int nbytes, int offset)

Unsafe version of: prep_write

public static native void
nio_uring_prep_write_fixed(long sqe, int fd, long buf, int nbytes, int offset, int buf_index)

Unsafe version of: prep_write_fixed

public static native void
nio_uring_prep_writev(long sqe, int fd, long iovecs, int nr_vecs, int offset)

Unsafe version of: prep_writev

public static native void
nio_uring_prep_writev2(long sqe, int fd, long iovecs, int nr_vecs, int offset, int flags)

Unsafe version of: prep_writev2

public static native void
nio_uring_queue_exit(long ring)

Unsafe version of: queue_exit

public static native int
nio_uring_queue_init(int entries, long ring, int flags)

Unsafe version of: queue_init

public static native int
nio_uring_queue_init_params(int entries, long ring, long p)

public static native int
nio_uring_queue_mmap(int fd, long p, long ring)

Unsafe version of: queue_mmap

public static native long
public static native long
nio_uring_recvmsg_cmsg_nexthdr(long o, long msgh, long cmsg)

public static native long
public static native long
nio_uring_recvmsg_payload(long o, long msgh)

public static native int
nio_uring_recvmsg_payload_length(long o, int buf_len, long msgh)

public static native long
nio_uring_recvmsg_validate(long buf, int buf_len, long msgh)

public static native int
nio_uring_register_buf_ring(long ring, long reg, int flags)

Unsafe version of: register_buf_ring

public static native int
nio_uring_register_buffers(long ring, long iovecs, int nr_iovecs)

Unsafe version of: register_buffers

public static native int
nio_uring_register_buffers_sparse(long ring, int nr_iovecs)

Unsafe version of: register_buffers_sparse

public static native int
nio_uring_register_buffers_tags(long ring, long iovecs, long tags, int nr)

public static native int
nio_uring_register_buffers_update_tag(long ring, int off, long iovecs, long tags, int nr)

public static native int
nio_uring_register_eventfd(long ring, int fd)

public static native int
public static native int
nio_uring_register_file_alloc_range(long ring, int off, int len)

public static native int
nio_uring_register_files(long ring, long files, int nr_files)

Unsafe version of: register_files

public static native int
nio_uring_register_files_sparse(long ring, int nr_files)

Unsafe version of: register_files_sparse

public static native int
nio_uring_register_files_tags(long ring, long files, long tags, int nr)

public static native int
nio_uring_register_files_update(long ring, int off, long files, int nr_files)

public static native int
nio_uring_register_files_update_tag(long ring, int off, long files, long tags, int nr_files)

public static native int
nio_uring_register_iowq_aff(long ring, long cpusz, long mask)

public static native int
nio_uring_register_iowq_max_workers(long ring, long values)

public static native int
public static native int
nio_uring_register_probe(long ring, long p, int nr)

public static native int
nio_uring_register_restrictions(long ring, long res, int nr_res)

public static native int
nio_uring_register_ring_fd(long ring)

Unsafe version of: register_ring_fd

public static native int
nio_uring_register_sync_cancel(long ring, long reg)

public static native int
nio_uring_ring_dontfork(long ring)

Unsafe version of: ring_dontfork

public static native int
nio_uring_setup(int entries, long p)

Unsafe version of: setup

public static native long
nio_uring_setup_buf_ring(long ring, int nentries, int bgid, int flags, long ret)

public static native int
nio_uring_sq_ready(long ring)

Unsafe version of: sq_ready

public static native int
nio_uring_sq_space_left(long ring)

Unsafe version of: sq_space_left

public static native void
nio_uring_sqe_set_data(long sqe, long data)

Unsafe version of: sqe_set_data

public static native void
nio_uring_sqe_set_data64(long sqe, long data)

Unsafe version of: sqe_set_data64

public static native void
nio_uring_sqe_set_flags(long sqe, int flags)

Unsafe version of: sqe_set_flags

public static native int
nio_uring_sqring_wait(long ring)

Unsafe version of: sqring_wait

public static native int
nio_uring_submit(long ring)

Unsafe version of: submit

public static native int
public static native int
nio_uring_submit_and_wait(long ring, int wait_nr)

Unsafe version of: submit_and_wait

public static native int
nio_uring_submit_and_wait_timeout(long ring, long cqe_ptr, int wait_nr, long ts, long sigmask)

Unsafe version of: submit_and_wait_timeout

public static native int
nio_uring_unregister_buf_ring(long ring, int bgid)

Unsafe version of: unregister_buf_ring

public static native int
nio_uring_unregister_buffers(long ring)

Unsafe version of: unregister_buffers

public static native int
public static native int
public static native int
public static native int
public static native int
nio_uring_unregister_ring_fd(long ring)

Unsafe version of: unregister_ring_fd

public static native int
nio_uring_wait_cqe(long ring, long cqe_ptr)

Unsafe version of: wait_cqe

public static native int
nio_uring_wait_cqe_nr(long ring, long cqe_ptr, int wait_nr)

Unsafe version of: wait_cqe_nr

public static native int
nio_uring_wait_cqe_timeout(long ring, long cqe_ptr, long ts)

Unsafe version of: wait_cqe_timeout

public static native int
nio_uring_wait_cqes(long ring, long cqe_ptr, int wait_nr, long ts, long sigmask)

Unsafe version of: wait_cqes

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait