lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20070713163201.1cb6165f@the-village.bc.nu>
Date:	Fri, 13 Jul 2007 16:32:01 +0100
From:	Alan Cox <alan@...rguk.ukuu.org.uk>
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 Tue, 10 Jul 2007 09:06:36 -0400
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?

Usually one major and two minor, although sysfs and udev deals with much
of it now
-
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ