LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2011, 04:02 AM   #1
avee137
Member
 
Registered: Apr 2010
Location: bangalore,india
Distribution: ubuntu 9.10,CentOS 5
Posts: 120

Rep: Reputation: 16
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?
 
Old 08-21-2011, 04:35 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
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

Last edited by jdkaye; 08-21-2011 at 04:36 AM.
 
Old 08-21-2011, 05:09 AM   #3
avee137
Member
 
Registered: Apr 2010
Location: bangalore,india
Distribution: ubuntu 9.10,CentOS 5
Posts: 120

Original Poster
Rep: Reputation: 16
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?
 
Old 08-21-2011, 05:36 AM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
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
 
Old 08-21-2011, 07:35 AM   #5
avee137
Member
 
Registered: Apr 2010
Location: bangalore,india
Distribution: ubuntu 9.10,CentOS 5
Posts: 120

Original Poster
Rep: Reputation: 16
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.
 
Old 10-04-2016, 01:08 PM   #6
cupcake555
LQ Newbie
 
Registered: Oct 2016
Posts: 3

Rep: Reputation: Disabled
I read that it would be here drivers/net/loopback.c
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Loopback the only interface after 12.1 upgrade... Lufbery Slackware 5 05-15-2008 08:58 PM
Help for developing a device driver code for loopback interface in linux sandeepvl Programming 2 01-14-2007 01:46 AM
Bringing up loopback interface dlmack67 Linux - Hardware 4 04-21-2006 12:29 PM
Using loopback interface... ozymandias Linux - Newbie 2 10-28-2005 01:37 PM
Loopback Interface in a router theneb Linux - Networking 1 01-16-2005 02:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration