* [Bridge] brctl insmod
@ 2004-01-29 20:49 Abhijit Kumbhare
2004-01-29 21:29 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Abhijit Kumbhare @ 2004-01-29 20:49 UTC (permalink / raw)
To: bridge
I noticed that when I type brctl - it does insmod when the bridge module
is not loaded. Where can I find the code (in the brctl or libbridge
code) which does that?
Thanks,
Abhijit
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bridge] brctl insmod
2004-01-29 20:49 [Bridge] brctl insmod Abhijit Kumbhare
@ 2004-01-29 21:29 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2004-01-29 21:29 UTC (permalink / raw)
To: Abhijit Kumbhare; +Cc: bridge
On Thu, 29 Jan 2004 12:49:44 -0800
Abhijit Kumbhare <abhijitk@nortelnetworks.com> wrote:
> I noticed that when I type brctl - it does insmod when the bridge module
> is not loaded. Where can I find the code (in the brctl or libbridge
> code) which does that?
>
brctl does an ioctl to get bridge info; it ends up in:
net/socket.c
static int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
unsigned long arg)
{
...
switch (cmd) {
...
case SIOCGIFBR:
case SIOCSIFBR:
err = -ENOPKG;
if (!br_ioctl_hook)
request_module("bridge");
down(&br_ioctl_mutex);
if (br_ioctl_hook)
err = br_ioctl_hook(arg);
up(&br_ioctl_mutex);
break;
--
Stephen Hemminger mailto:shemminger@osdl.org
Open Source Development Lab http://developer.osdl.org/shemminger
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-29 21:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-29 20:49 [Bridge] brctl insmod Abhijit Kumbhare
2004-01-29 21:29 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox