Re: Integrating a driver with kernel

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

 



> Hi,

> 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?
> 
> thanks,
> 
> suresh.

First read http://www.kernelnewbies.org/documents/kdoc/kernel-hacking/submitting.html

Also read:
/usr/src/linux/Documentation/SubmittingPatches and in the same
directory SubmittingDrivers and CodingStyle.

I'm not sure what you need to do network-specific though.

Bahadir

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