]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Add a note about how livetree updates work
authorSimon Glass <sjg@chromium.org>
Sat, 30 Jul 2022 21:52:07 +0000 (15:52 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 12 Aug 2022 12:14:23 +0000 (08:14 -0400)
commit72b338aa2cd4afff8e92ab28199bc2db073cfea7
treeef3330fd92fb137089563680907562a4989d15a5
parent5063ced278e0093bdf926bc832a804f09fd3bd66
dm: core: Add a note about how livetree updates work

The unflattening algorithm results in a single block of memory being
allocated for the whole tree. When writing new properties, these are
allocated new memory outside that block. When the block is freed, the
allocated properties remain.

Document how this works and the potential memory leak, as well as
mentioning that updating the livetree is actually supported now.

Signed-off-by: Simon Glass <sjg@chromium.org>
doc/develop/driver-model/livetree.rst
include/dm/ofnode.h