Integrating a driver with kernel

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

 



Hi,

If there is one information I find difficult to obtain in the web/books, it is about integrating a driver with the kernel. Whereas the procedure for char and block drivers is same, that for network drivers is slightly different. What I mean is, not modularized drivers, but drivers linked directly to the kernel.

Suppose I have a network driver, mynetdrv.c . I compile this and and make mynetdrv.o . I insmod this and check that it is fine. Now, how do I integrate it with the kernel binaries, so that evey time the kernel starts up, it should automatically start this driver also? I think there is difference in the procedure for different types of network drivers, say eth, plip etc. Do I have to modify any file in linux/drivers/net directory? Does the Space.c file should be modified?And what should I? Any other file needs to be modified? And finally I have to compile this new kernel and make a new image, correct?

Even Alessandro Rubini has not written any article regarding this,nor included in his book. I've hardly seen any regarding this information. One I have seen is for 2.0 (and that too, only for char and block drivers, and not network), but I want the procedure for 2.4/2.6 kernels.

Expecting a reply,

thanks,

suresh.


-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


--
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