zephyr/subsys
Trond Einar Snekvik 0151d6dc33 Bluetooth: Mesh: Model extension concept
Adds the model extension concept to the access layer, as described in
the Mesh Profile Specification, Section 2.3.6. Extensions are
implemented as a tree, using two pointers in each model:

The extends pointer points to the first extended model, and the next
pointer points to the next sibling or (if the NEXT_IS_PARENT flag is
set) the parent model in the tree, forming a cyclical "Left-child
right-sibling" (LCRS) tree. The tree root can be obtained by calling
bt_mesh_model_root_get(), and the extended models can be walked by
calling bt_mesh_model_tree_walk().

According to the Mesh Profile Specification Section 4.2.3, all models in
the same extension tree share one subscription list per element. This is
implemented by walking the model's extension tree, and pooling the
subscription lists of all models in the same element into one. If the
config server adds a subscription to a model, it may be stored in any of
the model tree's models' subscription lists. No two models in the same
extension tree and element will have duplicate groups listed. This
allows us to increase extended models' capacity for subscriptions
significantly.

Signed-off-by: Trond Einar Snekvik <Trond.Einar.Snekvik@nordicsemi.no>
2019-11-07 18:57:32 +02:00
..
bluetooth Bluetooth: Mesh: Model extension concept 2019-11-07 18:57:32 +02:00
console kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
cpp kconfig: cpp: Have LIB_CPLUSPLUS depend on ! MINIMAL_LIBC 2019-11-05 16:19:27 +01:00
debug headers: Refactor kernel and arch headers. 2019-11-06 16:07:32 -08:00
dfu flash_img: add error check to 'flash_progressive_erase' 2019-11-06 21:41:14 +01:00
disk kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
fb kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
fs kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
jwt kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
logging headers: Refactor kernel and arch headers. 2019-11-06 16:07:32 -08:00
mgmt kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
net headers: Refactor kernel and arch headers. 2019-11-06 16:07:32 -08:00
power cleanup: include/: move misc/reboot.h to power/reboot.h 2019-06-27 22:55:49 -04:00
random subsys/random: Add cryptographically secure and bulk fill functions 2019-11-05 19:36:42 +01:00
settings kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
shell kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
stats cleanup: include/: move stats.h to stats/stats.h 2019-06-27 22:55:49 -04:00
storage kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
testsuite headers: Refactor kernel and arch headers. 2019-11-06 16:07:32 -08:00
usb kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
Kconfig kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00