Re: Question concerning PCI device driver

From: Stelian Pop (
Date: Tue Jun 25 2002 - 09:49:18 EST

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 Pop <>
Alcove -
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Jun 30 2002 - 22:00:09 EST