Sponsored Content
Full Discussion: The simplest network driver
Top Forums Programming The simplest network driver Post 302574697 by Chrisdot on Friday 18th of November 2011 05:17:19 AM
Old 11-18-2011
May I count on you a bit?
I see, that while performing:

Code:
static int __init e1000_init_module(void)
{
       return  pci_register_driver(&e1000_driver);
}

function pointed by .probe is called.

Code:
/* PCI Device API Driver */
static struct pci_driver e1000_driver = {
       .name     = e1000e_driver_name,
       .id_table = e1000e_pci_tbl,
       .probe    = e1000_probe,
       .remove   = __devexit_p(e1000_remove),
       .shutdown = e1000_shutdown,
};

Is that behaviour described somewhere?
As I remember, exactly at this moment (pci_register_driver) driver announce set of device IDs he support, and kernel looking at this announcement and into PCI config space of every device binds proper driver to every device. Am I correct?
 

8 More Discussions You Might Find Interesting

1. Programming

Network device driver

HI, I am writing a network device driver for RTL8139c card on 2.6.18 kernel ... I am facing few queries listed below 1. Can i able to at all write a driver for RTL8139C or Realtek had designed new chip for 2.6 series kernel? 2. If no then which driver file 2.6.18 uses .. Is it 8139too.c or... (1 Reply)
Discussion started by: niketan
1 Replies

2. Solaris

network driver cpu usage

Hello all, Needed a suggestion from you all, if you know anything about this stuff. We have a high network traffic application. Close to around 700Meg /sec on one NIC. When the traffic is around 200Meg on the NIC, the VCPU(not the CPU, cause we have 24 VCPU) utilization by the NIC driver... (5 Replies)
Discussion started by: Naanu
5 Replies

3. Solaris

Installing Network on Computer, might be driver

Hi All, Just completing my second Solaris installation, in the previous one which was on a Dell X64 machine, I went through the Network configuration setting, on the current computer which I am installing Solaris on, its a custom built machine and for some reason, I didnt see the screen where I... (1 Reply)
Discussion started by: platforminc
1 Replies

4. Solaris

network driver not detecting in solaris 10 X86 on HPDL380G5 Server

I have installed solaris10 x86 on HP DL380 G5 Server, but network card is not getting detected. i have installed the network driver, downloaded from the following link HP ProLiant DL380 G5 Server series- Download drivers and software - HP Business Support Center Can any one suggest me how to... (1 Reply)
Discussion started by: raj.chinnu
1 Replies

5. Red Hat

How to know whether the network driver alredy installed in my system

I am using NVIDIA nforce: Networking controllers And Redhat enterprice linux ws version 4 32 bit: OS I want to connect my system to Broadband internet using linux. From where can I download the driver for nertwork. How to know whether the network driver alredy installed in my system. ... (0 Replies)
Discussion started by: rijas
0 Replies

6. Solaris

Can I Install the Gani Network Driver Using the Application that Came on the CD?

When I boot up the Solaris 10 5/09 install CD and select 'Solaris' from the GRUB menu that comes up, a menu loads. Option 5 is 'Apply Driver Updates'. Can I install the Gani driver using that? I tried using the tar file (the way it came) that I wrote to a floppy but when I asked it to look at the... (8 Replies)
Discussion started by: Bradj47
8 Replies

7. UNIX for Dummies Questions & Answers

Simulated driver for Network Interface Adapter

Hi all, I got sort of a task to do. I have to write in C "simulated network driver". What does it mean? - It has to run on all network adapters - It has to be as simple as it can be - It has to run on all linux distributions (or at least most of them) - It does not have to run a network... (4 Replies)
Discussion started by: Chrisdot
4 Replies

8. Programming

Compiling virtual network adapter driver problem (net_device struct)

Hi, I found on linuxgazette.net/93/bhaskaran.html page very useful sample of virtual driver (not connected to real hardware). I try to compile it with no effect. So: I got fresh Ubuntu 9.10 (kernel 2.6.31-14) My source is saved in networkAdapter.c file in /usr/src/myModules directory. I... (21 Replies)
Discussion started by: Chrisdot
21 Replies
IXGBE(4)						   BSD Kernel Interfaces Manual 						  IXGBE(4)

NAME
ixgbe -- Intel(R) 10Gb Ethernet driver for the FreeBSD operating system SYNOPSIS
To compile this driver into the kernel, place the following line in your kernel configuration file: device ixgbe Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): if_ixgbe_load="YES" DESCRIPTION
The ixgbe driver provides support for PCI 10Gb Ethernet adapters based on the Intel 82598EB Intel(R) Network Connections. The driver sup- ports Jumbo Frames, MSIX, TSO, and RSS. For questions related to hardware requirements, refer to the documentation supplied with your Intel 10GbE adapter. All hardware requirements listed apply to use with FreeBSD. Support for Jumbo Frames is provided via the interface MTU setting. Selecting an MTU larger than 1500 bytes with the ifconfig(8) utility configures the adapter to receive and transmit Jumbo Frames. The maximum MTU size for Jumbo Frames is 16114. This driver version supports VLANs. For information on enabling VLANs, see ifconfig(8). HARDWARE
The ixgbe driver supports the following cards: o Intel(R) 10 Gigabit XF SR/AF Dual Port Server Adapter o Intel(R) 10 Gigabit XF SR/LR Server Adapter o Intel(R) 82598EB 10 Gigabit AF Network Connection o Intel(R) 82598EB 10 Gigabit AT CX4 Network Connection DIAGNOSTICS
ixgbe%d: Unable to allocate bus resource: memory A fatal initialization error has occurred. ixgbe%d: Unable to allocate bus resource: interrupt A fatal initialization error has occurred. ixgbe%d: watchdog timeout -- resetting The device has stopped responding to the network, or there is a problem with the network connection (cable). SUPPORT
For general information and support, go to the Intel support website at: http://support.intel.com. If an issue is identified with the released source code on the supported kernel with a supported adapter, email the specific information related to the issue to <freebsdnic@mailbox.intel.com>. SEE ALSO
arp(4), netintro(4), ng_ether(4), polling(4), vlan(4), ifconfig(8) HISTORY
The ixgbe device driver first appeared in FreeBSD 7.0. AUTHORS
The ixgbe driver was written by Intel Corporation <freebsdnic@mailbox.intel.com>. BSD
June 11, 2008 BSD
All times are GMT -4. The time now is 05:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy