From: "Chava Leviatan" <chavale@actcom.net.il>
To: <linux-kernel@vger.kernel.org>
Subject: kernel thread and cahche memeory at 2.4
Date: Wed, 11 Oct 2006 14:02:23 +0200 [thread overview]
Message-ID: <047b01c6ed2d$1e810140$c500a8c0@Chavalaptop> (raw)
Hi ,
I am trying to understand whether there is any context (thread wise)
involved when I do alloc_skb.
I have a kernel module that runs a kernel thread. (2.4.18 , regular PC with
2 ethernet interfaces)
That thread generates an ICMP packet every 50 milisec. It does it as
follows:
- call to alloc_skb
- fill ip header and icmp header
- fill in the necessary skb fields
- call to ip_rcv to inject the packet into the stack
Al of that worked just fine , and I was able to inspect the outgoing packets
through ethereal.
The problem occured while I did a rmmod for that module - the machine just
crashed (reset )
After spending some time in debugging this problem , I added a short delay
at my exit function before
the stop thread call. I have discovered that the last call to __kfree_skb
from net_tx_action must come while
my kernel thread is still alive .
I am trying to understand why is it so . Is there any importance to the
context that had performed the alloc ?
Thanks for any tip,
Chava
reply other threads:[~2006-10-11 12:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='047b01c6ed2d$1e810140$c500a8c0@Chavalaptop' \
--to=chavale@actcom.net.il \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®