loadNativeLibrary() — netty Function Reference
Architecture documentation for the loadNativeLibrary() function in Native.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 341552d6_0bb1_05ef_5036_4cf5a0b3ce31["loadNativeLibrary()"] 6ddaf968_1eb9_8057_3938_2ad6d5ebbbeb["Native"] 341552d6_0bb1_05ef_5036_4cf5a0b3ce31 -->|defined in| 6ddaf968_1eb9_8057_3938_2ad6d5ebbbeb style 341552d6_0bb1_05ef_5036_4cf5a0b3ce31 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-io_uring/src/main/java/io/netty/channel/uring/Native.java lines 655–674
private static void loadNativeLibrary() {
String name = PlatformDependent.normalizedOs().toLowerCase(Locale.ROOT).trim();
if (!name.startsWith("linux")) {
throw new IllegalStateException("Only supported on Linux");
}
String staticLibName = "netty_transport_native_io_uring42";
String sharedLibName = staticLibName + '_' + PlatformDependent.normalizedArch();
ClassLoader cl = PlatformDependent.getClassLoader(Native.class);
try {
NativeLibraryLoader.load(sharedLibName, cl);
} catch (UnsatisfiedLinkError e1) {
try {
NativeLibraryLoader.load(staticLibName, cl);
logger.info("Failed to load io_uring");
} catch (UnsatisfiedLinkError e2) {
ThrowableUtil.addSuppressed(e1, e2);
throw e1;
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does loadNativeLibrary() do?
loadNativeLibrary() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/Native.java.
Where is loadNativeLibrary() defined?
loadNativeLibrary() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/Native.java at line 655.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free