Re: Network Driver and NFS Root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 15 Oct 2004, Bob Wirka wrote:

Since I don't know how to pass the io address and irq number to the kernel, I've hard-coded them into the driver's init function (which I don't see being called).

As you suspect the key is getting the driver init function called during the kernel boot. In addition, if the souces is primarily build for being a module some small pieces of glue may be missing.


In the 2.4 kernel there is a couple of methods a network driver gets initialized

  * Module init function when being loaded as a module.

* Static tables in the main kernel, listing the "older" compiled-in network driver not using the dynamic/automatic initialization methods. Seen in in most (if not all) non-PCI drivers.

* The dynamic/automatic module_init registered function which is a unification of interface for modules and statically linked modules, simplifying matters greatly.

For statically linked modules to get initialized they must use one of the last two..

Regards
Henrik
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux