zephyr/tests/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
..
6lo tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
all tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
arp tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
bridge tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
buf tests: net: buf: add tests for data matching 2024-01-16 09:40:04 -06:00
buf_simple tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
checksum_offload tests: net: checksum_offload: Add tests involving IP fragmentation 2023-11-08 15:09:37 +00:00
conn_mgr_conn tests: fix various test identifiers 2023-11-17 09:27:40 +01:00
conn_mgr_monitor tests: fix various test identifiers 2023-11-17 09:27:40 +01:00
context tests: fix thread function signatures 2023-10-30 12:24:34 +01:00
dhcpv4 tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
dhcpv6 tests: net: dhcpv6: Adjust the source address of test pkt 2024-01-03 19:00:33 +00:00
ethernet_mgmt tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
hostname tests: net: hostname: add test for net_hostname_set 2024-01-17 14:42:58 +01:00
icmp net: context: Add support for adjusting IPv4 multicast ttl 2023-12-04 15:07:43 +01:00
icmpv4 net: ipv4: Check localhost for incoming packet 2023-12-21 09:18:24 +01:00
icmpv6 tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
ieee802154 tests ieee802154: Enable for native_sim 2023-11-20 09:21:13 +01:00
iface tests: net: if: Add test to check device readiness 2023-12-14 14:21:31 +01:00
igmp tests: net: igmp: Add socket based join/leave tests 2023-12-04 16:38:49 +00:00
ip-addr tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
ipv4_fragment net: ip: Add option to force checksum calculation 2023-11-08 15:09:37 +00:00
ipv6 tests: net: ipv6: Adjust the source address of test pkt 2024-01-03 19:00:33 +00:00
ipv6_fragment net: ip: Add option to force checksum calculation 2023-11-08 15:09:37 +00:00
lib net: lwm2m: Add LWM2M_ON_INIT() macro 2024-01-24 10:44:28 +01:00
mgmt tests: net: mgmt: Add test cases new worker options 2023-12-07 16:15:53 +00:00
mld tests: net: mld: Add socket based join/leave tests 2023-12-04 16:38:49 +00:00
mocks test: net: buf_simple: Add unit tests for simple buffers 2023-03-15 10:50:16 +01:00
neighbor tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
net_pkt tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
npf tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
offloaded_netdev tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
pm tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
ppp/driver tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
promiscuous tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
ptp/clock tests net/ptp/clock: Enable for native_sim 2023-11-20 09:21:13 +01:00
route tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
route_mcast tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
shell tests: net: shell: Increase number of IP address structs 2023-12-04 09:57:35 +01:00
socket drivers: can: remove run-time RTR filtering, add build-time RTR filter 2024-01-21 11:00:31 +01:00
tcp tests: net: tcp: Add tests for last FIN handling 2024-01-09 10:03:08 +01:00
traffic_class tests/net/traffic_class: Enable for native_sim 2023-11-20 09:21:13 +01:00
trickle tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
tx_timestamp tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
udp tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
utils tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
virtual net: ipv4: Check localhost for incoming packet 2023-12-21 09:18:24 +01:00
vlan tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
wifi/wifi_nm tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00