lkml.org 
[lkml]   [2002]   [Aug]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 16 Aug 2002 23:17:40 -0400
FromJeff Garzik <>
SubjectRe: need help with pci_module_init
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




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:22    [W:0.170 / U:0.040 seconds]
©2003-2008 Jasper Spaans