From: Tobias Koeck <tobias.koeck@gmail.com>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: netfilter kernel modules question
Date: Mon, 14 Dec 2009 21:28:02 +0100 [thread overview]
Message-ID: <4B269FD2.4020807@gmail.com> (raw)
In-Reply-To: <alpine.LSU.2.01.0912142115290.14355@obet.zrqbmnf.qr>
On 12/14/2009 09:17 PM, Jan Engelhardt wrote:
> On Monday 2009-12-14 16:20, Tobias Koeck wrote:
>
>> I have two netfilter kernel modules (xt_RQS.c, xt_RQD.c, both include a header
>> file with a data structure in it).
>>
>> Does both kernel modules use the same datastructures or do they use seperate
>> ones (in normal C programming I know that but I'm not sure about the kernel
>> scopes).
>
> You decide whether they do. This does not change just because you are in
> kernel space.
Can you please give a short example how to to it?
Let's say you've got one data structure (int a) in the header file.
How can you access it in both c-files? Do you have to export it?
Is there a deeper information how the kernel scope is structured?
next prev parent reply other threads:[~2009-12-14 20:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-14 15:20 netfilter kernel modules question Tobias Koeck
2009-12-14 20:17 ` Jan Engelhardt
2009-12-14 20:28 ` Tobias Koeck [this message]
2009-12-14 20:32 ` Jan Engelhardt
2009-12-14 20:48 ` Tobias Koeck
2009-12-14 20:52 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B269FD2.4020807@gmail.com \
--to=tobias.koeck@gmail.com \
--cc=jengelh@medozas.de \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.