Home / Function/ scheduleRecvReadFd() — netty Function Reference

scheduleRecvReadFd() — netty Function Reference

Architecture documentation for the scheduleRecvReadFd() function in IoUringDomainSocketChannel.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  f3066102_b27b_d743_8c60_561f9d9cfbcb["scheduleRecvReadFd()"]
  dc99258d_71a6_9064_ca08_361c0964e22e["IoUringDomainSocketUnsafe"]
  f3066102_b27b_d743_8c60_561f9d9cfbcb -->|defined in| dc99258d_71a6_9064_ca08_361c0964e22e
  9f4cc00d_73a2_67b4_0b9e_3397fce40777["scheduleRead0()"]
  9f4cc00d_73a2_67b4_0b9e_3397fce40777 -->|calls| f3066102_b27b_d743_8c60_561f9d9cfbcb
  style f3066102_b27b_d743_8c60_561f9d9cfbcb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringDomainSocketChannel.java lines 174–193

        private int scheduleRecvReadFd() {
            // we can reuse the same memory for any fd
            // because we only submit one outstanding read
            if (readMsgHdrMemory == null) {
                readMsgHdrMemory = new MsgHdrMemory();
            }
            readMsgHdrMemory.prepRecvReadFd();
            IoRegistration registration = registration();
            IoUringIoOps ioUringIoOps = IoUringIoOps.newRecvmsg(
                    fd().intValue(), (byte) 0, 0, readMsgHdrMemory.address(), readMsgHdrMemory.idx());
            readId = registration.submit(ioUringIoOps);
            readOpCode = Native.IORING_OP_RECVMSG;
            if (readId == 0) {
                MsgHdrMemory memory = readMsgHdrMemory;
                readMsgHdrMemory = null;
                memory.release();
                return 0;
            }
            return 1;
        }

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free