11-23-2011
I have read "Linux Device Drivers", chapter "Network Drivers", and "PCI Drivers".
Thanks Corona688 for your response.
What if there are in kernel space two drivers supporting the same device id?
.probe function would be run for all of them?
8 More Discussions You Might Find Interesting
1. Programming
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
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
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
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
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
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
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
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
LEARN ABOUT OPENSOLARIS
ddi_dev_is_sid
ddi_dev_is_sid(9F) Kernel Functions for Drivers ddi_dev_is_sid(9F)
NAME
ddi_dev_is_sid - tell whether a device is self-identifying
SYNOPSIS
#include <sys/conf.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>
int ddi_dev_is_sid(dev_info_t *dip);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
dip A pointer to the device's dev_info structure.
DESCRIPTION
The ddi_dev_is_sid() function tells the caller whether the device described by dip is self-identifying, that is, a device that can unequiv-
ocally tell the system that it exists. This is useful for drivers that support both a self-identifying as well as a non-self-identifying
variants of a device (and therefore must be probed).
RETURN VALUES
DDI_SUCCESS Device is self-identifying.
DDI_FAILURE Device is not self-identifying.
CONTEXT
The ddi_dev_is_sid() function can be called from user, interrupt, or kernel context.
EXAMPLES
1 ...
2 int
3 bz_probe(dev_info_t *dip)
4 {
5 ...
6 if (ddi_dev_is_sid(dip) == DDI_SUCCESS) {
7 /*
8 * This is the self-identifying version (OpenBoot).
9 * No need to probe for it because we know it is there.
10 * The existence of dip && ddi_dev_is_sid() proves this.
11 */
12 return (DDI_PROBE_DONTCARE);
13 }
14 /*
15 * Not a self-identifying variant of the device. Now we have to
16 * do some work to see whether it is really attached to the
17 * system.
18 */
19 ...
SEE ALSO
probe(9E) Writing Device Drivers
SunOS 5.11 16 Jan 2006 ddi_dev_is_sid(9F)