From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: harish.vasudeva@amd.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: need help with pci_module_init
Date: Fri, 16 Aug 2002 23:17:40 -0400 [thread overview]
Message-ID: <3D5DC054.4010403@mandrakesoft.com> (raw)
In-Reply-To: CB35231B9D59D311B18600508B0EDF2F04F285D0@caexmta9.amd.com
harish.vasudeva@amd.com wrote:> hi folks
>
> pci_module_init() works fine only the first time i load my driver.
> subsequent loads will fail with this call returning -19!! any clues?
It works in the various PCI drivers in drivers/net/* ... I debug
modules all the time by repeatedly loading and unloading them.
Make sure to check that you are using SET_MODULE_OWNER immediately
following your alloc_etherdev() call. It sounds like you might have
messed-up module counts. Also "cat /proc/modules" to check the module
reference count correctness.
Jeff
next prev parent reply other threads:[~2002-08-17 3:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-17 1:52 need help with pci_module_init harish.vasudeva
2002-08-17 3:17 ` Jeff Garzik [this message]
2002-08-17 3:24 ` Kai Germaschewski
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=3D5DC054.4010403@mandrakesoft.com \
--to=jgarzik@mandrakesoft.com \
--cc=harish.vasudeva@amd.com \
--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 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.