[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <35fbaa3e0707100613r4397bc50h16afe15b89e0bbcb@mail.gmail.com>
Date: Tue, 10 Jul 2007 16:13:51 +0300
From: "Vitaliy Ivanov" <vitalivanov@...il.com>
To: "Jon Dufresne" <jon.dufresne@...initevideocorporation.com>
Cc: "Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>
Subject: Re: Driver question: multiple instances of same char device
On 7/10/07, Jon Dufresne <jon.dufresne@...initevideocorporation.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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists