Home / Function/ submitAndGet0() — netty Function Reference

submitAndGet0() — netty Function Reference

Architecture documentation for the submitAndGet0() function in SubmissionQueue.java from the netty codebase.

Function java Buffer Allocators calls 3 called by 2

Entity Profile

Dependency Diagram

graph TD
  ee83630d_bb3f_069b_2bdf_fe4f9f84e1c8["submitAndGet0()"]
  1d316f16_48b4_d00e_edf3_3c8fd55f9a6a["SubmissionQueue"]
  ee83630d_bb3f_069b_2bdf_fe4f9f84e1c8 -->|defined in| 1d316f16_48b4_d00e_edf3_3c8fd55f9a6a
  91de2273_009f_20c3_0f5d_f83d5beb37ae["submitAndGet()"]
  91de2273_009f_20c3_0f5d_f83d5beb37ae -->|calls| ee83630d_bb3f_069b_2bdf_fe4f9f84e1c8
  a06d12e4_b0c3_9e8e_e0c6_46ae21815e21["submitAndGetNow()"]
  a06d12e4_b0c3_9e8e_e0c6_46ae21815e21 -->|calls| ee83630d_bb3f_069b_2bdf_fe4f9f84e1c8
  8a51d74d_fd76_09f6_f454_5a079f4faf11["checkClosed()"]
  ee83630d_bb3f_069b_2bdf_fe4f9f84e1c8 -->|calls| 8a51d74d_fd76_09f6_f454_5a079f4faf11
  d8afc313_5c22_a638_a799_a59e3af69b92["submit()"]
  ee83630d_bb3f_069b_2bdf_fe4f9f84e1c8 -->|calls| d8afc313_5c22_a638_a799_a59e3af69b92
  0b9ee949_f438_fd8c_1b6b_8500db630572["ioUringEnter()"]
  ee83630d_bb3f_069b_2bdf_fe4f9f84e1c8 -->|calls| 0b9ee949_f438_fd8c_1b6b_8500db630572
  style ee83630d_bb3f_069b_2bdf_fe4f9f84e1c8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-io_uring/src/main/java/io/netty/channel/uring/SubmissionQueue.java lines 259–271

    private int submitAndGet0(int minComplete) {
        checkClosed();
        int submit = tail - head;
        if (submit > 0) {
            return submit(submit, minComplete, Native.IORING_ENTER_GETEVENTS);
        }
        assert submit == 0;
        int ret = ioUringEnter(0, minComplete, Native.IORING_ENTER_GETEVENTS);
        if (ret < 0) {
            throw new UncheckedIOException(Errors.newIOException("io_uring_enter", ret));
        }
        return ret; // should be 0
    }

Domain

Subdomains

Frequently Asked Questions

What does submitAndGet0() do?
submitAndGet0() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/SubmissionQueue.java.
Where is submitAndGet0() defined?
submitAndGet0() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/SubmissionQueue.java at line 259.
What does submitAndGet0() call?
submitAndGet0() calls 3 function(s): checkClosed, ioUringEnter, submit.
What calls submitAndGet0()?
submitAndGet0() is called by 2 function(s): submitAndGet, submitAndGetNow.

Analyze Your Own Codebase

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

Try Supermodel Free