lkml.org 
[lkml]   [2002]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Question concerning PCI device driver
On Tue, Jun 25, 2002 at 09:21:46AM -0400, Bloch, Jack wrote:

> I am now porting this driver to a 2.4 Kernel and in the Linux device driver
> book it talks about using pci_module_init. How do I get the major number to
> allow for IOCTL commands?

Just do it in the same way, only the pci management functions changed:
you will now need to register your chrdev in the pci_probe callback
instead of the module_init() function.

You should look at the existing drivers in the kernel tree, under
drivers/char, and you'll find many drivers which work that way...

Stelian.
--
Stelian Pop <stelian.pop@fr.alcove.com>
Alcove - http://www.alcove.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.023 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site