Messages in this thread | | | Date | Tue, 25 Jun 2002 16:49:18 +0200 | From | Stelian Pop <> | Subject | Re: 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/
| |