Re: [TECH TOPIC] Implementing malloc
Laurent Pinchart <[email protected]> Fri, 10 Jul 2026 14:44:21 +0300
| Newsgroups | dev.linux.lists.ksummit |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jul 10, 2026 at 01:21:23PM +0200, Geert Uytterhoeven wrote: > On Thu, 9 Jul 2026 at 20:52, Dan Carpenter 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? ;-) I know that lots of people overuse the devm_*() allocators in ways that are very harmfull :-) Jokes aside, I think Kees mentioned he would extend the object allocation API to devm_*(). -- Regards, Laurent Pinchart