mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Irfan Hamid <irfan_hamid@softhome.net>
To: linux-kernel@vger.kernel.org
Subject: PCI card char driver
Date: Thu, 7 Nov 2002 14:12:18 +0000	[thread overview]
Message-ID: <200211071412.18719.irfan_hamid@softhome.net> (raw)

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.

                 reply	other threads:[~2002-11-07  8:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200211071412.18719.irfan_hamid@softhome.net \
    --to=irfan_hamid@softhome.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®