lkml.org 
[lkml]   [2023]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v5] module: replace module_layout with module_memory
Date


> On Feb 1, 2023, at 2:07 AM, Peter Zijlstra <peterz@infradead.org> wrote:
>
[...]

>
> ... you write something like:
>
> #define for_class_mod_mem_type(type, class) \
> for_each_mod_mem_type(type) \
> if (mod_mem_type_is_##class(type))
>
> Then we can write things like:
>
> for_class_mod_mem_type(type, init)
> for_class_mod_mem_type(type, data)
>
> and
>
> for_class_mod_mem_type(type, core_data)
>
> (this last could be used in show_datasize() for example).
>
> Does that make sense?

It sure does. Let me give it a try.

Thanks,
Song

\
 
 \ /
  Last update: 2023-03-27 00:06    [W:0.078 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site