Re: [PATCH v5] module: replace module_layout with module_memory

From
Song Liu <hidden>
Date
2023-02-01 16:50:55
Also in
lkml
Reply to
Peter Zijlstra, 2023-02-01
On Feb 1, 2023, at 2:07 AM, Peter Zijlstra [off-list ref] 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
Thread (3 messages) 3 messages, 3 authors, last reply 2023-02-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help