zephyr/subsys/net/lib
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
..
capture
coap net: coap: Add API to count number of pending requests 2023-12-20 11:57:48 +00:00
config net: l2: ieee802154: security config 2023-09-29 16:27:31 +02:00
dhcpv4 net: dhcpv4: Implement DHCPv4 server 2024-01-19 10:15:23 +00:00
dns net: lib: mdns_responder: Fix interface count check 2024-01-03 10:19:38 +01:00
http
lwm2m net: lwm2m: Add LWM2M_ON_INIT() macro 2024-01-24 10:44:28 +01:00
mqtt
mqtt_sn net: mqtt-sn: Remember incoming registered topic name 2023-11-22 09:53:33 +01:00
shell net: shell: Implement DHCPv4 server shell commands 2024-01-19 10:15:23 +00:00
sntp net: sntp: Add option for SNTP uncertainty 2023-12-08 10:25:46 +00:00
sockets net: socket_services: Increase default stack size for DHCPv4 server 2024-01-19 10:15:23 +00:00
socks
tftp net: tftp: Ensure the error message fits into transmit buffer 2023-11-20 09:24:18 +01:00
tls_credentials tf-m: Change NS include path for TF-M 2.0.0 2024-01-17 16:52:52 +01:00
trickle net: Move trickle files to lib 2023-12-11 10:50:35 +01:00
utils
websocket random: Rename random header 2023-10-10 14:23:50 +03:00
zperf net: zperf: Convert UDP receiver to use socket services 2024-01-18 20:13:31 +01:00
CMakeLists.txt net: dhcpv4: Implement DHCPv4 server 2024-01-19 10:15:23 +00:00
Kconfig net: dhcpv4: Implement DHCPv4 server 2024-01-19 10:15:23 +00:00