mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org, Ahmad Fatoum <a.fatoum@barebox.org>
Subject: Re: [PATCH RFC 1/3] lib: add talloc for overlaying a tree onto allocations
Date: Mon, 10 Nov 2025 09:12:05 +0100	[thread overview]
Message-ID: <176276232506.985046.11225171524975607876.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20251027075438.2480311-1-a.fatoum@barebox.org>


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@pengutronix.de>




      parent reply	other threads:[~2025-11-10  8:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-27  7:54 Ahmad Fatoum
2025-10-27  7:54 ` [PATCH RFC 2/3] test: self: add talloc selftest Ahmad Fatoum
2025-10-27  7:54 ` [PATCH RFC 3/3] hush: fix memory leaks Ahmad Fatoum
2025-10-28  9:42 ` [PATCH RFC 1/3] lib: add talloc for overlaying a tree onto allocations Sascha Hauer
2025-10-28 10:26   ` Ahmad Fatoum
2025-11-07 13:55     ` Sascha Hauer
2025-11-07 13:56       ` Ahmad Fatoum
2025-11-10  8:12 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=176276232506.985046.11225171524975607876.b4-ty@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=a.fatoum@barebox.org \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox