Home / File/ IoUringIoOps.java — netty Source File

IoUringIoOps.java — netty Source File

Architecture documentation for IoUringIoOps.java, a java file in the netty codebase.

Entity Profile

Relationship Graph

Source Code

/*
 * Copyright 2024 The Netty Project
 *
 * The Netty Project licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at:
 *
 *   https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
package io.netty.channel.uring;

import io.netty.channel.IoOps;

/**
 * {@link IoOps} for implementation for
 * <a href="https://github.com/axboe/liburing/blob/liburing-2.8/src/include/liburing.h">Io_uring</a>.
 */
public final class IoUringIoOps implements IoOps {

    private final byte opcode;
    private final byte flags;
    private final short ioPrio;
    private final int fd;
    private final long union1;
    private final long union2;
    private final int len;
    private final int union3;
    private final short data;
    private final short personality;
    private final short union4;
    private final int union5;
    private final long union6;

    /**
     * Create a new instance which represents the {@code io_uring_sqe} struct.
     *
     * <pre>{@code
     *  struct io_uring_sqe {
     *      __u8    opcode;    // type of operation for this sqe
     *      __u8    flags;     // IOSQE_ flags
     *      __u16   ioprio;    // ioprio for the request
     *      __s32   fd;        // file descriptor to do IO on
     *
     *      union {            // union1
     *          __u64 off;     // offset into file
     *          __u64 addr2;
     *          struct {
     *              __u32 cmd_op;
     *              __u32 __pad1;
     *          };
     *      };
     *
     *      union {             // union2
     *          __u64 addr;    // pointer to buffer or iovecs
// ... (425 more lines)

Domain

Subdomains

Classes

Frequently Asked Questions

What does IoUringIoOps.java do?
IoUringIoOps.java is a source file in the netty codebase, written in java. It belongs to the Buffer domain, Telemetry subdomain.
Where is IoUringIoOps.java in the architecture?
IoUringIoOps.java is located at transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringIoOps.java (domain: Buffer, subdomain: Telemetry, directory: transport-classes-io_uring/src/main/java/io/netty/channel/uring).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free