]> git.baikalelectronics.ru Git - uboot.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)
commitb22777fdfaa5b0d2f45fbb272a9fc269c8ee7c34
treeef3330fd92fb137089563680907562a4989d15a5
parent902f2f6ad55718c8086158a91393675b2e8b616c
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