Home / Function/ checkCqSize() — netty Function Reference

checkCqSize() — netty Function Reference

Architecture documentation for the checkCqSize() function in IoUringIoHandlerConfig.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  331e8416_ff71_55b0_7bfa_8034da61b145["checkCqSize()"]
  92925609_b765_6463_2e57_25f6a2cca36b["IoUringIoHandlerConfig"]
  331e8416_ff71_55b0_7bfa_8034da61b145 -->|defined in| 92925609_b765_6463_2e57_25f6a2cca36b
  cf9838b4_998c_f0f7_f4a3_d4f2e5ff4a58["IoUringIoHandlerConfig()"]
  cf9838b4_998c_f0f7_f4a3_d4f2e5ff4a58 -->|calls| 331e8416_ff71_55b0_7bfa_8034da61b145
  style 331e8416_ff71_55b0_7bfa_8034da61b145 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringIoHandlerConfig.java lines 177–187

    private int checkCqSize(int cqSize) {
        if (cqSize < ringSize) {
            throw new IllegalArgumentException("cqSize must be greater than or equal to ringSize");
        }

        boolean isPowerOfTwo = Integer.bitCount(cqSize) == 1;
        if (!isPowerOfTwo) {
            throw new IllegalArgumentException("cqSize: " + cqSize + " (expected: power of 2)");
        }
        return cqSize;
    }

Domain

Subdomains

Frequently Asked Questions

What does checkCqSize() do?
checkCqSize() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringIoHandlerConfig.java.
Where is checkCqSize() defined?
checkCqSize() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringIoHandlerConfig.java at line 177.
What calls checkCqSize()?
checkCqSize() is called by 1 function(s): IoUringIoHandlerConfig.

Analyze Your Own Codebase

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

Try Supermodel Free