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

From
Peter Zijlstra <peterz@infradead.org>
Date
2023-01-31 11:26:36
Also in
lkml
Reply to
Song Liu, 2023-01-30
On Mon, Jan 30, 2023 at 10:21:09AM -0800, Song Liu wrote:
+	if (type == MOD_DATA || type == MOD_RODATA ||
+	    type == MOD_RO_AFTER_INIT) {
quoted hunk ↗ jump to hunk
+static bool mod_mem_use_vmalloc(enum mod_mem_type type)
+{
+	return type == MOD_DATA || type == MOD_RODATA || type == MOD_RO_AFTER_INIT;
+}
perhaps a mod_mem_type_is_data() helper?
Thread (12 messages) 12 messages, 5 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