Re: PCI device init?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 10, 2006 at 04:54:48PM -0500, Medeiros Edward M NPRI wrote:
> Hello,
> 
>  
> 
> I am looking at the accompanying code to the book "Linux Device
> Drivers, 3rd edition". The file is "pci_skel.c".  My question is how
> does the "pci_skel_init()" function get called?  Is it called
> automatically by the kernel when the driver module gets loaded?

Yes, see the line:
	module_init(pci_skel_init);

That does it.  See earlier chapters in the book which explain this.

thanks,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux