Re: [TECH TOPIC] Implementing malloc

Geert Uytterhoeven <[email protected]> Fri, 10 Jul 2026 13:21:23 +0200
Newsgroups dev.linux.lists.ksummit
Message-ID <CAMuHMdUBHvY30ZuV=mpnkQ0Fip4vk0iqb252H9YNiOJ=AtPpyg@mail.gmail.com>
Hi Dan,

On Thu, 9 Jul 2026 at 20:52, Dan Carpenter <[email protected]> wrote:
> On Thu, Jul 09, 2026 at 06:11:21PM +0100, Matthew Wilcox wrote:
> > I agree that many memory allocations benefit from providing more semantic
> > information to both the compiler and the runtime, as you suggest.
> > What I don't think we benefit from is "And you have to pass this magic
> > GFP_KERNEL argument too.  Unless it's GFP_ATOMIC or something".
>
> You know that most people are using kzmalloc_obj() these days and so
> they don't pass GFP_KERNEL...

You know that most people are using the devm_*() allocators  these
days and so they do pass GFP_KERNEL? ;-)

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds