* PCI card char driver
@ 2002-11-07 14:12 Irfan Hamid
0 siblings, 0 replies; only message in thread
From: Irfan Hamid @ 2002-11-07 14:12 UTC (permalink / raw)
To: linux-kernel
I have to write a device driver for a PCI data acquisition device. So i
startet writing a char driver for it. Problem is, now I'm confused, I mean,
if its a pci device then i need to call register_pci_driver(struct pci_dev*),
but a struct pci_dev* has only hooks like (*suspend) ( ), (*probe) ( ) etc...
where do i fit in my read( ) / write( ) / ioctl( ) etc hooks?
I looked up some char driver sources, the only thing I could find was
something called a struct misc_driver which contains a struct file_ops* and
is registered using misc_register(struct misc_driver*). What am I missing
here?
Regards,
Irfan.
PS: I have read "Linux Device Drivers" by Alessandro Rubini and also have it
on hand. So if someone could point me to somewhere in that book it would be
just as well. TIA.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-07 8:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-07 14:12 PCI card char driver Irfan Hamid
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®