writeScmRights() — netty Function Reference
Architecture documentation for the writeScmRights() function in CmsgHdr.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD fb90a876_5c2e_f3a3_7f07_6fdec455c613["writeScmRights()"] 111a3db5_f15e_0e90_7c29_bf659eb23b98["CmsgHdr"] fb90a876_5c2e_f3a3_7f07_6fdec455c613 -->|defined in| 111a3db5_f15e_0e90_7c29_bf659eb23b98 style fb90a876_5c2e_f3a3_7f07_6fdec455c613 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-io_uring/src/main/java/io/netty/channel/uring/CmsgHdr.java lines 48–59
static void writeScmRights(ByteBuffer cmsghdr, int cmsgHdrDataOffset, int fd) {
int cmsghdrPosition = cmsghdr.position();
if (Native.SIZEOF_SIZE_T == 4) {
cmsghdr.putInt(cmsghdrPosition + Native.CMSG_OFFSETOF_CMSG_LEN, Native.CMSG_LEN_FOR_FD);
} else {
assert Native.SIZEOF_SIZE_T == 8;
cmsghdr.putLong(cmsghdrPosition + Native.CMSG_OFFSETOF_CMSG_LEN, Native.CMSG_LEN_FOR_FD);
}
cmsghdr.putInt(cmsghdrPosition + Native.CMSG_OFFSETOF_CMSG_LEVEL, Native.SOL_SOCKET);
cmsghdr.putInt(cmsghdrPosition + Native.CMSG_OFFSETOF_CMSG_TYPE, Native.SCM_RIGHTS);
cmsghdr.putInt(cmsghdrPosition + cmsgHdrDataOffset, fd);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does writeScmRights() do?
writeScmRights() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/CmsgHdr.java.
Where is writeScmRights() defined?
writeScmRights() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/CmsgHdr.java at line 48.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free