On Wednesday 02 April 2008, santosh sivaraj wrote: > I have a doubt regarding the PCI driver. After probing the pci device > we can get data from the device through write or inb function. How does > the application get data from the driver? Do we implement read and > write functions? If so how to actually implement. I went through two > or three driver codes but none implemented the read and write > functions. Any pointers to a driver code which implements this will be > helpful. That depends, what you want to do with the driver and how do you want to give access to an client application. Read/write is just a way to get data from the application to the driver. The driver then has to format the data and communicate with the pci card. You can take any example for read/write. I once enhanced a driver for a company, who sends and receives small packets with their PCI cards. They had 2 ways: IOCTL and the faster (and more dangerous) way MMAP to the application. With MMAP the application can write directly to the PCI memory. I can email you the driver, if you are interested. Bye...Frank -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ