Re: Help-PCI device driver

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

 





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

--
play the game

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux