Call the model init functions to initialize their subsystems. We provide driver(DRIVER_INIT) init and servers init(SERVICE_INIT). We need to call InitcallInitialize to initialize the module
Let's take netd_init for example.
To use initcall, you need to include initcall.h first
@code #include "initcall.h" @endcode
Call the initialization function in the mian function to initialize the existing functions in the service section
@code InitcallInitialize(SECTION_SERVICE); @endcode
Please change the include directories, source code and dependent libraries accordingly.
add ietd_init to init section(The init section is a separate area in the ld script)
@code SERVICE_INIT(netd_init); @endcode