[PATCH RFC 1/3] lib: add talloc for overlaying a tree onto allocations
Sascha Hauer
s.hauer at pengutronix.de
Mon Nov 10 00:12:05 PST 2025
On Mon, 27 Oct 2025 08:54:32 +0100, Ahmad Fatoum wrote:
> Talloc is the hierarchical allocator used by Samba, which keeps all
> allocated buffers in a tree, where each child may not live longer than
> its parent. When a parent is talloc_free'd, all its children are as
> well. This can simplify memory management a great deal.
>
> In barebox, this can also be used to implement devm_.
>
> [...]
Applied, thanks!
[1/3] lib: add talloc for overlaying a tree onto allocations
https://git.pengutronix.de/cgit/barebox/commit/?id=9c35b3c2ac7e (link may not be stable)
[2/3] test: self: add talloc selftest
https://git.pengutronix.de/cgit/barebox/commit/?id=2e65ba56f3ee (link may not be stable)
[3/3] hush: fix memory leaks
https://git.pengutronix.de/cgit/barebox/commit/?id=f86d68979fa6 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list