LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   loopback network interface driver location (https://www.linuxquestions.org/questions/linux-newbie-8/loopback-network-interface-driver-location-898585/)

avee137 08-21-2011 04:02 AM

loopback network interface driver location
 
Is loopback network interface driver statically compiled in kernel or dynamically pluggable/un-pluggable?where is it located in linux directory structure?

jdkaye 08-21-2011 04:35 AM

Is this any use?
Code:

~$ locate loopback
................
/lib/modules/3.0-3.dmz.1-liquorix-amd64/kernel/drivers/media/rc/rc-loopback.ko
/lib/modules/3.0-3.dmz.1-liquorix-amd64/kernel/drivers/target/loopback
/lib/modules/3.0-3.dmz.1-liquorix-amd64/kernel/drivers/target/loopback/tcm_loop.ko
...............
/usr/src/linux-headers-3.0-3.dmz.1-liquorix-amd64/drivers/target/loopback
/usr/src/linux-headers-3.0-3.dmz.1-liquorix-amd64/drivers/target/loopback/Kconfig
/usr/src/linux-headers-3.0-3.dmz.1-liquorix-amd64/drivers/target/loopback/Makefile
/usr/src/linux-headers-3.0-3.dmz.1-liquorix-amd64/include/config/loopback
/usr/src/linux-headers-3.0-3.dmz.1-liquorix-amd64/include/config/loopback/target.h
/usr/src/linux-headers-3.0-3.dmz.1-liquorix-amd64/include/config/rc/loopback.h

jdk

avee137 08-21-2011 05:09 AM

not of much help.thanks anyways.

All i want to do is to remove(rmmod) the default pseudo loopback network interface driver and plug(insmod) my own customized pseudo loopback network interface driver.Any help?

markush 08-21-2011 05:36 AM

Hello avee137,

why do you think that jdkaye's post is not helpful? what do you expect?

Most likely if you can't find the module on your system it is not compiled as a module but built directly into the kernel. Or it isn't a module at all (cannot be compiled as a module), I don't know.

It's up to you to find the code for the network-loopback-driver...... well, on my System it's in /usr/src/linux-3.0-rc1/drivers/net/loopback.c, and recompile the kernel with your own code.

Markus

avee137 08-21-2011 07:35 AM

Thanks for your pointer markush.

I too eventually concluded that its not compiled as module. it is statically compiled in kernel, it seems. i ll try to recompile the kernel.

cupcake555 10-04-2016 01:08 PM

I read that it would be here drivers/net/loopback.c


All times are GMT -5. The time now is 12:01 AM.