Home / File/ netty_kqueue_eventarray.c — netty Source File

netty_kqueue_eventarray.c — netty Source File

Architecture documentation for netty_kqueue_eventarray.c, a c file in the netty codebase. 9 imports, 0 dependents.

File c Buffer 9 imports

Entity Profile

Dependency Diagram

graph LR
  2ea1bcb2_4005_a92d_76da_35a46a06705d["netty_kqueue_eventarray.c"]
  71c93e68_2a73_4cb2_880c_de03b52acd47["netty_kqueue_eventarray.h"]
  2ea1bcb2_4005_a92d_76da_35a46a06705d --> 71c93e68_2a73_4cb2_880c_de03b52acd47
  fe15cf64_2755_0bab_e1c6_27f1c00974e3["netty_unix_errors.h"]
  2ea1bcb2_4005_a92d_76da_35a46a06705d --> fe15cf64_2755_0bab_e1c6_27f1c00974e3
  6856ca94_355a_7202_2c29_bef2cb72a53b["netty_unix_jni.h"]
  2ea1bcb2_4005_a92d_76da_35a46a06705d --> 6856ca94_355a_7202_2c29_bef2cb72a53b
  9cdab914_3acb_8e23_55b9_b6b0ac295acc["netty_unix_util.h"]
  2ea1bcb2_4005_a92d_76da_35a46a06705d --> 9cdab914_3acb_8e23_55b9_b6b0ac295acc
  d822c438_bcda_8ebc_05f9_1007c55018be["stdlib.h"]
  2ea1bcb2_4005_a92d_76da_35a46a06705d --> d822c438_bcda_8ebc_05f9_1007c55018be
  5cbcd069_b25c_7379_e9c5_47a7dd85985a["string.h"]
  2ea1bcb2_4005_a92d_76da_35a46a06705d --> 5cbcd069_b25c_7379_e9c5_47a7dd85985a
  1cd991d2_f70c_b50c_8f2d_ba89cd654ec5["types.h"]
  2ea1bcb2_4005_a92d_76da_35a46a06705d --> 1cd991d2_f70c_b50c_8f2d_ba89cd654ec5
  27c22b18_e07b_ca5c_716a_becacc4ae73b["event.h"]
  2ea1bcb2_4005_a92d_76da_35a46a06705d --> 27c22b18_e07b_ca5c_716a_becacc4ae73b
  e2ce8cee_e0e0_76ab_811d_4633a3fa5f14["time.h"]
  2ea1bcb2_4005_a92d_76da_35a46a06705d --> e2ce8cee_e0e0_76ab_811d_4633a3fa5f14
  style 2ea1bcb2_4005_a92d_76da_35a46a06705d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/*
 * Copyright 2016 The Netty Project
 *
 * The Netty Project licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at:
 *
 *   https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/event.h>
#include <sys/time.h>

#include "netty_kqueue_eventarray.h"
#include "netty_unix_errors.h"
#include "netty_unix_jni.h"
#include "netty_unix_util.h"

#define EVENT_ARRAY_CLASSNAME "io/netty/channel/kqueue/KQueueEventArray"

static void netty_kqueue_eventarray_evSet(JNIEnv* env, jclass clzz, jlong keventAddress, jint ident, jshort filter, jshort flags, jint fflags, jlong data, jlong udata) {
    EV_SET((struct kevent*) keventAddress, ident, filter, flags, fflags, data, (void *) udata);
}

// JNI Method Registration Table Begin
static const JNINativeMethod fixed_method_table[] = {
  { "evSet", "(JISSIJJ)V", (void *) netty_kqueue_eventarray_evSet }
};
static const jint fixed_method_table_size = sizeof(fixed_method_table) / sizeof(fixed_method_table[0]);

// JNI Method Registration Table End

// IMPORTANT: If you add any NETTY_JNI_UTIL_LOAD_CLASS or NETTY_JNI_UTIL_FIND_CLASS calls you also need to update
//            Native to reflect that.
jint netty_kqueue_eventarray_JNI_OnLoad(JNIEnv* env, const char* packagePrefix) {
    if (netty_jni_util_register_natives(env,
            packagePrefix,
            EVENT_ARRAY_CLASSNAME,
            fixed_method_table,
            fixed_method_table_size) != 0) {
        return JNI_ERR;
    }
    return NETTY_JNI_UTIL_JNI_VERSION;
}

void netty_kqueue_eventarray_JNI_OnUnLoad(JNIEnv* env, const char* packagePrefix) {
    netty_jni_util_unregister_natives(env, packagePrefix, EVENT_ARRAY_CLASSNAME);
}

Domain

Dependencies

Frequently Asked Questions

What does netty_kqueue_eventarray.c do?
netty_kqueue_eventarray.c is a source file in the netty codebase, written in c. It belongs to the Buffer domain.
What does netty_kqueue_eventarray.c depend on?
netty_kqueue_eventarray.c imports 9 module(s): event.h, netty_kqueue_eventarray.h, netty_unix_errors.h, netty_unix_jni.h, netty_unix_util.h, stdlib.h, string.h, time.h, and 1 more.
Where is netty_kqueue_eventarray.c in the architecture?
netty_kqueue_eventarray.c is located at transport-native-kqueue/src/main/c/netty_kqueue_eventarray.c (domain: Buffer, directory: transport-native-kqueue/src/main/c).

Analyze Your Own Codebase

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

Try Supermodel Free