zephyr/subsys/net
Seppo Takalo ec3ec8cd2a net: lwm2m: Add LWM2M_ON_INIT() macro
Add macro that allows registration of initialization functions that
are called when LwM2M engine starts.

On LwM2M engine starts up, it first executes all initialization
functions in following priority order:
1. LWM2M_PRIO_ENGINE
2. LWM2M_PRIO_CORE, this is where all LwM2M core objects are initialized
3. LWM2M_PRIO_OBJ, this is where all other objects are initialized
4. LwM2M_PRIO_APP, application initialization.

Now on the initialization phase, we could rely that certain objects have
already been registered.
For example custom objects can register callbacks to core objects.
On application phase, we can initialize sensor objects and register
their callbacks because objects have already been initialized.

This LWM2M_ON_INIT() should replace all use of SYS_INIT()
with the default CONFIG_KERNEL_INIT_PRIORITY_DEFAULT.

Priority order is actually just alphabetical order of names, so
the order is set on a linkin phase, and we don't need any
runtime checking for it.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2024-01-24 10:44:28 +01:00
..
conn_mgr net: conn_mgr: output events as hex 2023-12-21 09:18:32 +01:00
ip net: dhcpv4: Implement DHCPv4 server 2024-01-19 10:15:23 +00:00
l2 net: wifi_shell: Remove TX-Injection and Promiscuous mode from Wi-Fi mode 2024-01-24 00:08:38 -05:00
lib net: lwm2m: Add LWM2M_ON_INIT() macro 2024-01-24 10:44:28 +01:00
pkt_filter net: pkt_filter: Introduce additional hooks for pkt_filter 2023-07-10 09:27:47 +02:00
buf_simple.c
buf.c net: buf: add function to match buffer's content with a given data 2024-01-16 09:40:04 -06:00
CMakeLists.txt net: conn_mgr: Write documentation 2023-09-28 15:11:14 +02:00
hostname.c logging: net: update hostname 2024-01-17 14:42:58 +01:00
Kconfig net: Add Kconfig for net buf alignment 2023-12-14 09:29:47 +01:00
Kconfig.hostname net: add set hostname function 2024-01-17 14:42:58 +01:00
Kconfig.template.log_config.default.net
Kconfig.template.log_config.net