From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: "Hen, Shmulik" <shmulik.hen@intel.com>
Cc: "'LNML'" <linux-net@vger.kernel.org>,
"'LKML'" <linux-kernel@vger.kernel.org>,
netdev@oss.sgi.com
Subject: Re: catch 22 - porting net driver from 2.2 to 2.4
Date: Sun, 12 Nov 2000 07:17:57 -0500 [thread overview]
Message-ID: <3A0E8A75.A1C24416@mandrakesoft.com> (raw)
In-Reply-To: <07E6E3B8C072D211AC4100A0C9C5758302B2708E@hasmsx52.iil.intel.com>
"Hen, Shmulik" wrote:
>
> So how come I get the "RTNL: assertion failed at
> devinet.c(775):inetdev_event" when I call register_netdevice without
> rtnl_lock/unlock ?
Uh. Don't do that. You MUST call register_netdevice with rtnl_lock
held.
> and what about rmmod causing the panic when I use unregister_netdev or never
> completing the operation when I use unregister_netdevice ?
> does module_exit run inside rtnl_lock too ?
module_exit does not run inside rtnl_lock.
Theoretically, if you call unregister_netdev from rmmon, it should grab
rtnl_lock and then complete the operation for you. If that doesn't work
for you, it sounds like you are not setting up, or cleaning up,
something correctly.
Basically... it sounds like there are still bugs in your driver that
need working out :)
Jeff
--
Jeff Garzik |
Building 1024 | Would you like a Twinkie?
MandrakeSoft |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-11-12 12:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-12 11:48 catch 22 - porting net driver from 2.2 to 2.4 Hen, Shmulik
2000-11-12 12:17 ` Jeff Garzik [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-11-20 16:13 Hen, Shmulik
2000-11-13 17:09 Hen, Shmulik
2000-11-13 8:18 Hen, Shmulik
2000-11-12 11:40 Hen, Shmulik
2000-11-12 12:20 ` Jeff Garzik
2000-11-09 17:26 Hen, Shmulik
2000-11-09 17:37 ` Jeff Garzik
2000-11-10 0:09 ` Olaf Titz
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=3A0E8A75.A1C24416@mandrakesoft.com \
--to=jgarzik@mandrakesoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=netdev@oss.sgi.com \
--cc=shmulik.hen@intel.com \
/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