On 12/6/05, SITARAM SAKTHINARAYANAN <SITARAMSN@xxxxxxxxxx> wrote:
Hi,
Ive been writing a driver for 2.4 kenel for a pci based card,
should i find the device using pci_find_device and then register the device
using register_chrdev, or can i register and find the device?
u will have to first register the device to the bus subsys and then probe for it
also if i hav multiple cards how do i go about registering all the cards
and also in cleanup module how do i unregister all the cards?
use sysfs API, will help. follow LDD 3rd ed for further help and its API on sysfs.
good luck