lkml.org 
[lkml]   [2021]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: how to return a chunk of kernel .data to free mem ?
From
Date
On 05.06.21 16:50, jim.cromie@gmail.com wrote:
> I have convinced DYNAMIC_DEBUG code to not need
> about 15% of its __dyndbg section, about 30kb on my test kernel.
>
> This memory is not kmalloc'd, so krealloc wont work.
> (I tried anyway, on a loaded module, it panicd)
>
> Is there a way to return a chunk of init .data memory to general use ?
>
> heres the patchset;
> https://lore.kernel.org/lkml/20210529200029.205306-1-jim.cromie@gmail.com/
>

Hm, you could try free_reserved_page(). But obviously, only full pages
can be handed to the buddy.

--
Thanks,

David / dhildenb

\
 
 \ /
  Last update: 2021-06-09 13:20    [W:0.042 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site