All of lore.kernel.org
 help / color / mirror / Atom feed
* Communication between kernel modules (what's the proper way?)
@ 2005-09-13 17:30 JC
  2005-09-14  0:11 ` Pablo Neira
  0 siblings, 1 reply; 2+ messages in thread
From: JC @ 2005-09-13 17:30 UTC (permalink / raw)
  To: netfilter-devel

Somewhat out of topic for the mailing list, but I guess the developers
here could advise me on the matter:

I have developed two modules that use hooks to manipulate packets, and
I wish for them to communicate with each other. The proper way to
communicate with userspace is by using ioctls. But what is a proper
way to use to pass data between the two modules, bearing in mind these
are my modules and I cant apply for a system call...?

regards,
Ioannis

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Communication between kernel modules (what's the proper way?)
  2005-09-13 17:30 Communication between kernel modules (what's the proper way?) JC
@ 2005-09-14  0:11 ` Pablo Neira
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira @ 2005-09-14  0:11 UTC (permalink / raw)
  To: bikkit; +Cc: netfilter-devel

JC wrote:
> Somewhat out of topic for the mailing list, but I guess the developers
> here could advise me on the matter:
> 
> I have developed two modules that use hooks to manipulate packets, and
> I wish for them to communicate with each other. The proper way to
> communicate with userspace is by using ioctls. But what is a proper
> way to use to pass data between the two modules, bearing in mind these
> are my modules and I cant apply for a system call...?

This isn't netfilter related at all, but it's related with kernel
programming.

You could do it by means of kernel notifiers (linux/notifier.h). You can
export a notifier_block that can be used to [un]register callbacks
(notifier_chain_[un]register) by both modules.

--
Pablo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-14  0:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-13 17:30 Communication between kernel modules (what's the proper way?) JC
2005-09-14  0:11 ` Pablo Neira

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.