Thread (22 messages) 22 messages, 3 authors, 2025-09-03

Re: [PATCH 4/7] netpoll: Export zap_completion_queue

From: Breno Leitao <leitao@debian.org>
Date: 2025-09-03 16:52:02
Also in: linux-rt-devel, lkml

On Tue, Sep 02, 2025 at 06:50:25PM -0400, Willem de Bruijn wrote:
Breno Leitao wrote:
quoted
 include/linux/netpoll.h | 1 +
 net/core/netpoll.c      | 5 ++---
 2 files changed, 3 insertions(+), 3 deletions(-)
....
quoted
-static void zap_completion_queue(void)
+void zap_completion_queue(void)
 {
 	unsigned long flags;
 	struct softnet_data *sd = &get_cpu_var(softnet_data);
@@ -267,6 +265,7 @@ static void zap_completion_queue(void)
 
 	put_cpu_var(softnet_data);
 }
+EXPORT_SYMBOL_GPL(zap_completion_queue);
consider EXPORT_SYMBOL_NS_GPL(zap_completion_queue, "NETDEV_INTERNAL");
Thanks for the suggestion. First time I've heard about the export by
Namespace. I suppose then I need to have
`MODULE_IMPORT_NS("NETDEV_INTERNAL");` called at the caller side, right?

--breno
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help