testIoUringProbeSupported() — netty Function Reference
Architecture documentation for the testIoUringProbeSupported() function in SubmissionQueueTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 202dd548_211a_4f05_5f60_16aedb0005d6["testIoUringProbeSupported()"] fd25db8c_3569_d733_e052_a05bfd7b5f45["SubmissionQueueTest"] 202dd548_211a_4f05_5f60_16aedb0005d6 -->|defined in| fd25db8c_3569_d733_e052_a05bfd7b5f45 style 202dd548_211a_4f05_5f60_16aedb0005d6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-native-io_uring/src/test/java/io/netty/channel/uring/SubmissionQueueTest.java lines 171–186
@Test
public void testIoUringProbeSupported() {
RingBuffer ringBuffer = Native.createRingBuffer(8, 0);
Native.IoUringProbe ioUringProbe = Native.ioUringProbe(ringBuffer.fd());
assertNotNull(ioUringProbe);
assertNotEquals(0, ioUringProbe.lastOp);
assertNotEquals(0, ioUringProbe.opsLen);
assertNotNull(ioUringProbe.ops);
assertFalse(Native.ioUringProbe(ioUringProbe, new int[] {Integer.MAX_VALUE}));
assertDoesNotThrow(() -> Native.checkAllIOSupported(ioUringProbe));
// Let's mark it as not supported.
ioUringProbe.ops[Native.IORING_OP_READ] = new Native.IoUringProbeOp(Native.IORING_OP_READ, 0);
assertFalse(Native.ioUringProbe(ioUringProbe, new int[] {Native.IORING_OP_READ}));
assertThrows(UnsupportedOperationException.class, () -> Native.checkAllIOSupported(ioUringProbe));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testIoUringProbeSupported() do?
testIoUringProbeSupported() is a function in the netty codebase, defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/SubmissionQueueTest.java.
Where is testIoUringProbeSupported() defined?
testIoUringProbeSupported() is defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/SubmissionQueueTest.java at line 171.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free