From: "Vitaliy Ivanov" <vitalivanov@gmail.com>
To: "Jon Dufresne" <jon.dufresne@infinitevideocorporation.com>
Cc: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: Driver question: multiple instances of same char device
Date: Tue, 10 Jul 2007 16:13:51 +0300 [thread overview]
Message-ID: <35fbaa3e0707100613r4397bc50h16afe15b89e0bbcb@mail.gmail.com> (raw)
In-Reply-To: <1184072796.31808.30.camel@microwave.infinitevideocorporation.com>
On 7/10/07, Jon Dufresne <jon.dufresne@infinitevideocorporation.com> wrote:
> I am relatively new to linux device development. And want to understand
> Linux conventions.
>
> Suppose I have a PCI card that is represented in the system by a
> character device.
>
> If I have two of those PCI cards in the system when the driver module
> loads, is it convention to have two different major numbers, or have one
> major number and two different minor numbers?
>
> Thanks,
> Jon
You can start your kernel hacking way from ldd. It can be found at:
http://lwn.net/Kernel/LDD3/
There are a few other books by R. Love or Greg KH that you can read.
Such questions are fully covered there.
Best,
Vitaliy
next prev parent reply other threads:[~2007-07-10 13:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-10 13:06 Jon Dufresne
2007-07-10 13:13 ` Vitaliy Ivanov [this message]
2007-07-10 13:31 ` Jon Dufresne
2007-07-13 15:32 ` Alan Cox
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=35fbaa3e0707100613r4397bc50h16afe15b89e0bbcb@mail.gmail.com \
--to=vitalivanov@gmail.com \
--cc=jon.dufresne@infinitevideocorporation.com \
--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®